Positions

List processed open positions

get

Returns processed open positions for the authenticated user

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
chevron-right
200

Processed open positions fetched successfully

application/json
get
/positions
200

Processed open positions fetched successfully

Create a new pair trading position with order

post

Create a pair trading position with various execution types: MARKET (immediate execution), TRIGGER (conditional execution), TWAP (time-weighted average), or LADDER (multiple ratio levels)

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
slippagenumber Β· min: 0.001 Β· max: 0.1Required

Slippage tolerance percentage (0.01 = 1%)

Example: 0.01
executionTypestring Β· enumRequired

Order execution type

Possible values:
leveragenumber Β· min: 1 Β· max: 100Required

Applied leverage

Example: 10
usdValuenumber Β· min: 1Required

Position size in USD

Example: 1000
triggerValuestringOptional

Required trigger threshold for TRIGGER orders (price, dominance, ratios, etc.)

Example: 45000
triggerTypestring Β· enumOptional

Trigger type for TRIGGER orders (PRICE, PRICE_RATIO, WEIGHTED_RATIO, BTC_DOM, CROSS_ASSET_PRICE, PREDICTION_MARKET_OUTCOME)

Example: PRICEPossible values:
directionstring Β· enumOptional

Direction for TRIGGER orders

Possible values:
assetNamestringOptional

Asset to monitor when triggerType is CROSS_ASSET_PRICE

Example: ETH
marketCodestringOptional

Market code to monitor when triggerType is PREDICTION_MARKET_OUTCOME

Example: KALSHI:EVENT_CODE
twapDurationnumberOptional

TWAP duration in minutes (required for TWAP orders)

Example: 120
twapIntervalSecondsnumber Β· min: 1 Β· max: 3600Optional

TWAP interval in seconds (time between chunks). Defaults to 30 seconds if not provided.

Example: 30
randomizeExecutionbooleanOptional

Randomize TWAP execution timing

Default: false
stopLossobject | nullableOptional

Stop loss trigger. PERCENTAGE: % change vs entry; DOLLAR: fixed USD change; POSITION_VALUE: % change of position value.

Example: {"type":"PERCENTAGE","value":15}
takeProfitobject | nullableOptional

Take profit trigger. PERCENTAGE: % change vs entry; DOLLAR: fixed USD change; POSITION_VALUE: % change of position value.

Example: {"type":"PERCENTAGE","value":25}
referralCodestringOptional

Referral code to be attached to user address if user has no referral code

Example: 0x48656c6c6f20776f726c64210000000000000000000000000000000000000000'
Responses
post
/positions
201

Position order created successfully

Close an entire position

post

Close a position using MARKET (immediate execution) or TWAP (time-weighted average) execution type

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
positionIdstring Β· uuidRequired

Position identifier

Body
executionTypestring Β· enumRequired

Type of close order

Possible values:
twapDurationnumberOptional

TWAP duration in minutes - required if executionType is TWAP

Example: 60
twapIntervalSecondsnumberOptional

TWAP interval in seconds (time between close chunks). Defaults to 30 seconds if not provided.

Example: 30
randomizeExecutionbooleanOptional

Randomize TWAP execution times - optional for TWAP orders

Example: true
referralCodestringOptional

Referral code to be attached to user address if user has no referral code

Example: 0x48656c6c6f20776f726c64210000000000000000000000000000000000000000'
Responses
chevron-right
200

Position close order created

application/json
post
/positions/{positionId}/close
200

Position close order created

Close all open positions

post

Fetches all open positions and closes them sequentially using MARKET or TWAP execution

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
executionTypestring Β· enumRequired

Type of close order

Possible values:
twapDurationnumberOptional

TWAP duration in minutes - required if executionType is TWAP

Example: 60
twapIntervalSecondsnumberOptional

TWAP interval in seconds (time between close chunks). Defaults to 30 seconds if not provided.

Example: 30
randomizeExecutionbooleanOptional

Randomize TWAP execution times - optional for TWAP orders

Example: true
referralCodestringOptional

Referral code to be attached to user address if user has no referral code

Example: 0x48656c6c6f20776f726c64210000000000000000000000000000000000000000'
Responses
chevron-right
200

Close orders created for all positions

application/json
post
/positions/close-all
200

Close orders created for all positions

Adjust position size by reducing or increasing by a specified amount

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
positionIdstring Β· uuidRequired

Position identifier

Body
adjustmentTypestring Β· enumRequired

Type of position adjustment (reduce or increase)

Default: REDUCEPossible values:
adjustmentSizenumber Β· min: 1 Β· max: 100Required

Percentage of position to adjust (1-100%)

Example: 25
executionTypestring Β· enumRequired

Type of execution for the adjustment

Default: MARKETPossible values:
limitRationumberOptional

Required if executionType is LIMIT

Example: 50000
referralCodestringOptional

Referral code to be attached to user address if user has no referral code

Example: 0x48656c6c6f20776f726c64210000000000000000000000000000000000000000'
Responses
chevron-right
200

Position adjustment order created successfully

application/json
post
/positions/{positionId}/adjust
200

Position adjustment order created successfully

Adjust position to target absolute sizes per asset (advance)

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
positionIdstring Β· uuidRequired

Position identifier

Bodystring[]
string[]Optional
Responses
chevron-right
200

Advance adjustment executed

application/json
Responseobject
post
/positions/{positionId}/adjust-advance
200

Advance adjustment executed

Adjust leverage for a position

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
positionIdstring Β· uuidRequired

Position identifier

Body
leveragenumber Β· min: 1 Β· max: 100Required

Applied leverage

Example: 10
Responses
chevron-right
200

Leverage updated successfully

application/json
Responseobject
post
/positions/{positionId}/adjust-leverage
200

Leverage updated successfully

Update stop loss and take profit values for a position

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
positionIdstring Β· uuidRequired

Position identifier

Body
Responses
chevron-right
200

Risk parameters updated successfully

application/json
put
/positions/{positionId}/riskParameters
200

Risk parameters updated successfully

Last updated