Accounts Endpoints¶
-
class
quoine.client.
Quoinex
(api_token_id, api_secret, vendor_id=None, language=None)[source] -
create_fiat_account
(currency) Create a fiat account for a currency
https://developers.quoine.com/#create-a-fiat-account
Parameters: currency (string) – required account = client.create_fiat_accounts(currency='USD')
Returns: API response { "id": 5595, "currency": "USD", "currency_symbol": "$", "balance": "0.0", "pusher_channel": "user_3122_account_usd", "lowest_offer_interest_rate": "0.00020", "highest_offer_interest_rate": "0.00060", "exchange_rate": "1.0", "currency_type": "fiat", "margin": "0.0", "free_margin": "0.0" }
Raises: QuoineResponseException, QuoineAPIException
-
get_account_balances
() Get all account balances
https://developers.quoine.com/#get-all-account-balances
account = client.get_account_balances()
Returns: API response [ { "currency": "BTC", "balance": "0.04925688" }, { "currency": "USD", "balance": "7.17696" }, { "currency": "JPY", "balance": "356.01377" } ]
Raises: QuoineResponseException, QuoineAPIException
-
get_crypto_accounts
() Get list of crypto accounts
https://developers.quoine.com/#get-crypto-accounts
accounts = client.get_crypto_accounts()
Returns: API response [ { "id": 4668, "balance": "4.99", "address": "1F25zWAQ1BAAmppNxLV3KtK6aTNhxNg5Hg", "currency": "BTC", "currency_symbol": "฿", "pusher_channel": "user_3020_account_btc", "minimum_withdraw": 0.02, "lowest_offer_interest_rate": "0.00049", "highest_offer_interest_rate": "0.05000", "currency_type": "crypto" } ]
Raises: QuoineResponseException, QuoineAPIException
-
get_fiat_accounts
() Get list of fiat accounts
https://developers.quoine.com/#get-fiat-accounts
accounts = client.get_fiat_accounts()
Returns: API response [ { "id": 4695, "currency": "USD", "currency_symbol": "$", "balance": "10000.1773", "pusher_channel": "user_3020_account_usd", "lowest_offer_interest_rate": "0.00020", "highest_offer_interest_rate": "0.00060", "exchange_rate": "1.0", "currency_type": "fiat", "margin": "0.0", "free_margin": "10000.1773" } ]
Raises: QuoineResponseException, QuoineAPIException
-