This section give's control over the system's fee rules.
Fee rule must be setted before trying to perform any trading action.
Fee rule must have specified volume (range) and a Fee percentage / Min. Fee / Fixed fee.
Fee rules can be different for every currency or side (Buy / Sell).
Admin logged in - can create new fee rules per every currency available in his system,delete or edit any fee rule.
User logged in - user don't have access to fee rules settings.
Returnes a list of the current fee rules setted.
Success
Unauthorized
Forbidden
{- "api_message": "<string>",
- "api_data": {
- "last_at": "<datetime string>",
- "total_items": 1,
- "feerules": [
- {
- "id": "<string>",
- "liquidity_id": "<string>",
- "base_currency": "<string>",
- "quote_curreny": "<string>",
- "markup_percent": 1,
- "markup_fixed": 1,
- "markup_min": 1,
- "from_volume": 1,
- "to_volume": 1,
- "side": "Buy",
- "created_at": "<datetime string>",
- "updated_at": "<datetime string>",
- "liquidity_name": "kraken",
- "limit_amount": 100000,
- "settlement": "SCHEDULED",
- "credentials": "ADMIN"
}
]
}
}
Create a new feerule for the provided liquidity.
raw(json)
Success
Unauthorized
Forbidden
Unprocessable Content
{- "liquidity_id": "WlBPdmtSY2hITGM9",
- "base_currency": "BTC",
- "quote_curreny": "USD",
- "markup_percent": 2.5,
- "markup_fixed": 2.5,
- "markup_min": 2.5,
- "from_volume": 750,
- "to_volume": 2000,
- "side": "Buy"
}
{- "api_message": "<string>",
- "api_data": null
}
Getting exact feerule row by id
Success
Unauthorized
Forbidden
{- "api_message": "<string>",
- "api_data": {
- "feerule": {
- "id": "<string>",
- "liquidity_id": "<string>",
- "base_currency": "<string>",
- "quote_curreny": "<string>",
- "markup_percent": 1,
- "markup_fixed": 1,
- "markup_min": 1,
- "from_volume": 1,
- "to_volume": 1,
- "side": "Buy",
- "created_at": "<datetime string>",
- "updated_at": "<datetime string>",
- "liquidity": {
- "id": "<string>",
- "provider_id": "<string>",
- "type": "EXCHANGE",
- "limit_amount": "<string>",
- "settlement": "SCHEDULED",
- "credentials": "ADMIN",
- "created_at": "<datetime string>",
- "updated_at": "<datetime string>"
}
}
}
}
Update specific rule row by feerule_id.
raw(json)
Success
Unauthorized
Forbidden
Unprocessable Content
{- "liquidity_id": "WlBPdmtSY2hITGM9",
- "base_currency": "BTC",
- "quote_curreny": "USD",
- "markup_percent": 2.5,
- "markup_fixed": 2.5,
- "markup_min": 2.5,
- "from_volume": 750,
- "to_volume": 2000,
- "side": "Buy"
}
{- "api_message": "<string>",
- "api_data": {
- "feerule": {
- "id": "<string>",
- "liquidity_id": "<string>",
- "base_currency": "<string>",
- "quote_curreny": "<string>",
- "markup_percent": 1,
- "markup_fixed": 1,
- "markup_min": 1,
- "from_volume": 1,
- "to_volume": 1,
- "side": "Buy",
- "created_at": "<datetime string>",
- "updated_at": "<datetime string>"
}
}
}