Get Settings
GET https://api.sfox.com/v1/enterprise/monetization/settings
This endpoint returns active monetization settings created by the Partner. Partners can filter by feature, method, user_id, or currency. An empty request body will return all active monetization settings for the Partner.
Body Parameters
feature
string
A feature returns settings for that feature i.e. SPOT_TRADE
method
string
A method returns settings for that method i.e. FEE_RATE
currency
string
A currency returns settings for that currency. i.e. btc
user_id
string
A Connect user ID returns settings relative to a user
Responses
Response Body
monetization_id
Unique ID for this monetization setting
monetization_feature
Feature the fee will apply to
monetization_feature_code
API readable monetization feature
monetization_method
Monetization method of the setting
monetization_method_code
API readable monetization method
monetization_amount
Monetization amount in decimal format
user_id
User Id of the user that the fee is specified for
currency_code
Currency that the fee is specified for
currency_pair
Currency pair that the fee is specified for
date_updated
Date and time the fee was created or updated
Example Requests
curl -X GET \
-H 'Content-type: application/json' \
-H "Authorization: Bearer ${ENTERPRISE_API_KEY}" \
--data '{ "feature": "SPOT_TRADE" }' \
'https://api.sfox.com/v1/enterprise/monetization/settings'const axios = require('axios');
const config = {
method: 'post',
url: 'https://api.sfox.com/v1/enterprise/monetization/settings',
headers: {
'Authorization': `Bearer ${process.env.ENTERPRISE_API_KEY}`
},
data: {
feature: 'SPOT_TRADE'
}
}
axios(config)
.then((response) => {
console.log(response.status);
console.log(response.data);
})
.catch((error) => {
console.error(error.response.status);
console.error(error.response.data);
});import requests
import os
data = requests.get(
"https://api.sfox.com/v1/enterprise/monetization/settings",
headers={
"Authorization": f"Bearer {os.environ['ENTERPRISE_API_KEY']}"
},
json={
"feature": "SPOT_TRADE"
}
)
print(data.status_code)
print(data.json())Last updated