v2.1.10: feat(#144): add missing endpoint for linear position mode. Type improvements & linting.

This commit is contained in:
tiagosiebler
2022-04-06 10:57:56 +01:00
parent 7dfae7a3f7
commit 81b8a34522
5 changed files with 125 additions and 33 deletions

11
src/constants/enum.ts Normal file
View File

@@ -0,0 +1,11 @@
export const linearPositionModeEnum = {
OneWayMode: 'MergedSingle',
HedgeMode: 'BothSide',
} as const;
export const positionTpSlModeEnum = {
/** Full take profit/stop loss mode (a single TP order and a single SL order can be placed, covering the entire position) */
Full: 'Full',
/** Partial take profit/stop loss mode (multiple TP and SL orders can be placed, covering portions of the position) */
Partial: 'Partial',
} as const;