Get All Positions
GET
https://api.sfox.com/v1/margin/loans
Retrieve a list of your account's positions.
Rate Limit: 10 requests per 10 seconds
Query Parameters
Name | Type | Description |
---|---|---|
| string | Filter response by position status
|
| string | Filter response by currency pair associated with the position i.e. |
| string | Filter response by loan currency i.e. |
| string | Filter response by collateral currency i.e. |
| string | Filter response by margin type
|
| string | Starting UNIX timestamp (in millis) |
| string | Ending UNIX timestamp (in millis) |
| string | The number of positions sent in the request. Default/Max = 100 |
| string | The last Position Id of the previous page. The request will contain orders following the cursor. |
Response Body
Key | Description |
---|---|
| Position ID |
| The status of the position
|
| Date and time the position was opened |
| The date and time the position was settled ( |
| Currency borrowed |
| The amount currently awaiting settlement including interest if applicable |
| Order proceeds currency |
| Currency pair traded to open the position |
| The annualized interest rate of the borrowed currency |
| The amount of interest that has been charged to this position in terms of the currency borrowed |
| Long or short |
| The ID of the order that opened the position |
| Proceeds of the collateral currency as a result of this position |
| Open Price. The fill price of the order that opened the position |
Responses
Example Requests
Last updated