Skip to main content

Positions

GET /v1/api/positions

This endpoint returns an array of option, future, and perpetual positions.

Headers

Header FieldTypeComments
credentials_secretJWTCreated by user for validation

Positions Response Message

NameTypeComments
server_utc_timestampintegerTime at which the message was generated by the API
positionsPosition[]cf below

Position Object

NameTypeComments
symbolstringInstrument name e.g BTC-USD
deliverable_idinteger
product_typestringoption / perpetual_future / future
timestampintegerμs utc timestamp when the position was last updated
sidestringlong / short
sizefloatPosition Size
average_entry_pricefloatAverage fill price
mark_pricefloatCurrent Mark Price
upnlfloatUnrealised PNL

Example

{
"positions_response": {
"server_utc_timestamp": "1670249080918323",
"positions": [
{
"symbol": "BTC-20230630-22000C",
"deliverable_id": "1825",
"product_type": "option",
"timestamp": "1670249079043755000",
"side": "long",
"size": "0.1",
"mark_price": "1694.0116749011",
"average_entry_price": "7975",
"upnl": "-628.09883250989"
},
{
"symbol": "BTC-20230630-28000C",
"deliverable_id": "2270",
"product_type": "option",
"timestamp": "1670249079043755000",
"side": "short",
"size": "-0.001",
"mark_price": "814.408368993",
"average_entry_price": "5275",
"upnl": "4.460591631007"
}
]
}
}