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
Example Requests
curl -H 'Authorization: Bearer <API_TOKEN>' \
https://api.sfox.com/v1/post-trade-settlement/risk-modesconst 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