get https://api-glb.sim.hashkeydev.com/api/v1/futures/positions
Weight: 1
Request Parameters
PARAMETER | TYPE | Req'd | Example values | DESCRIPTION |
---|---|---|---|---|
symbol | STRING | ETHUSDT-PERPETUAL | Name of the contract. Return results for all symbols if not specified | |
side | STRING | LONG | LONG or SHORT. Direction of the position. If not sent, positions for both sides will be returned. | |
recvWindow | LONG | 5000 | recv window | |
timestamp | LONG | Y | 1714311403031 | Timestamp |
Response Content
PARAMETER | TYPE | Example values | DESCRIPTION |
---|---|---|---|
symbol | STRING | BTCUSDT-PERPETUAL | Name of the contract. Return results for all symbols if not specified |
side | STRING | LONG | Position side, LONG or SHORT |
avgPrice | FLOAT | 100 | Average price for opening the position. |
position | FLOAT | 20 | Amount of contracts opened |
available | FLOAT | 15 | Amount of contracts available to close |
leverage | FLOAT | 5 | Leverage of the position |
lastPrice | FLOAT | 100 | Last trade price of the symbol |
positionValue | FLOAT | 2000 | Current position value. |
liquidationPrice | FLOAT | 80 | Forced liquidation price |
margin | FLOAT | 20 | Margin for this position. |
marginRate | FLOAT | 0.2 | Margin rate for current position |
profitRate | FLOAT | 0.0000333 | Rate of return for the position |
unrealizedPnL | FLOAT | 0 | Unrealized profit and loss for current position held |
realizedPnL | FLOAT | 6.8 | Cumulative realized profit and loss for this symbol |