Trading Accounts EndpointsΒΆ
-
class
quoine.client.
Quoinex
(api_token_id, api_secret, vendor_id=None, language=None)[source] -
get_trading_account
(account_id) Get a Trading Account
https://developers.quoine.com/#get-a-trading-account
Parameters: account_id (int) β Trading Account Id Returns: API response Raises: QuoineResponseException, QuoineAPIException { "id": 1759, "leverage_level": 10, "max_leverage_level": 10, "pnl": "0.0", "equity": "10000.1773", "margin": "4.2302", "free_margin": "9995.9471", "trader_id": 4807, "status": "active", "product_code": "CASH", "currency_pair_code": "BTCUSD", "position": "0.1", "balance": "10000.1773", "created_at": 1421992165, "updated_at": 1457242996, "pusher_channel": "trading_account_1759", "margin_percent": "0.1", "product_id": 1, "funding_currency": "USD" }
-
get_trading_accounts
() Get Trading Accounts
https://developers.quoine.com/#get-trading-accounts
Returns: API response Raises: QuoineResponseException, QuoineAPIException [ { "id": 1759, "leverage_level": 10, "max_leverage_level": 10, "pnl": "0.0", "equity": "10000.1773", "margin": "4.2302", "free_margin": "9995.9471", "trader_id": 4807, "status": "active", "product_code": "CASH", "currency_pair_code": "BTCUSD", "position": "0.1", "balance": "10000.1773", "created_at": 1421992165, "updated_at": 1457242996, "pusher_channel": "trading_account_1759", "margin_percent": "0.1", "product_id": 1, "funding_currency": "USD", "base_open_price": 0, "long_summary": { "pnl": "0.0", "position": "0.0", "base_open_price": "0.0" }, "short_summary": { "pnl": "0.0", "position": "0.0", "base_open_price": "0.0" } }, #... ]
-
update_leverage_level
(account_id, leverage_level) Update Trading account leverage level
Only available on Quoinex
https://developers.quoine.com/#update-leverage-level
Parameters: - account_id (int) β Trading Account Id
- leverage_level (int) β New leverage level
Returns: API response
Raises: QuoineResponseException, QuoineAPIException
{ "id": 1759, "leverage_level": 25, "max_leverage_level": 25, "pnl": "0.0", "equity": "10000.1773", "margin": "4.2302", "free_margin": "9995.9471", "trader_id": 4807, "status": "active", "product_code": "CASH", "currency_pair_code": "BTCUSD", "position": "0.1", "balance": "10000.1773", "created_at": 1421992165, "updated_at": 1457242996, "pusher_channel": "trading_account_1759", "margin_percent": "0.1", "product_id": 1, "funding_currency": "USD" }
-