For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get All Risk Modes

GET https://api.sfox.com/v1/post-trade-settlement/risk-modes

Retrieve the current risk mode of each currency pair.

Response Body

Key
Description

currency_pair

The currency pair the risk mode is applied to.

risk_mode

The current risk mode setting of this currency pair. Possible values:

Enabled: Credit may be used to open long or short positions. Long-Only: Credit may be used to open long positions. Short-Only: Credit may be used to open short positions. Reduce-Only: New positions may not be opened.

Responses

200
{
    "data": [
        {
            "currency_pair": "btcusd",
            "risk_mode": "Enabled"
        },
        {
            "currency_pair": "btcpax",
            "risk_mode": "Reduce_Only"
        },
        {
            "currency_pair": "ltcbtc",
            "risk_mode": "Enabled"
        }}

Example Requests

curl -H 'Authorization: Bearer <API_TOKEN>' \
https://api.sfox.com/v1/post-trade-settlement/risk-modes
const axios = require('axios');

axios({
  method: 'get',
  url: 'https://api.sfox.com/v1/post-trade-settlement/risk-modes',
  headers: {
    'Authorization': 'Bearer <API_KEY>'
  }
}).then(response => {
  console.log(response)
}).catch(err => {
  console.error(err)
});
import requests

data = requests.get(
  "https://api.sfox.com/v1/post-trade-settlement/risk-modes",
  headers={
    "Authorization": "Bearer <API_KEY>",
  }
)
print(data)

Last updated