Products Endpoints

class quoine.client.Quoinex(api_token_id, api_secret, vendor_id=None, language=None)[source]
get_order_book(product_id, full=False)

Get order book for a product

https://developers.quoine.com/#get-order-book

Parameters:
  • product_id (int) – required
  • full (bool) – default False, optional
order_book = client.get_order_book(1, full=False)
Returns:API response
{
    "buy_price_levels": [
        [
            "416.23000",    # price
            "1.75000"       # amount
        ],
        #...
    ],
    "sell_price_levels": [
        [
            "416.47000",    # price
            "0.28675"       # amount
        ],
        #...
    ]
}
Raises:QuoineResponseException, QuoineAPIException
get_product(product_id)

Get product details

https://developers.quoine.com/#get-a-product

Parameters:product_id (int) – required
product = client.get_product(1)
Returns:list - List of product dictionaries
{
    "id": 5,
    "product_type": "CurrencyPair",
    "code": "CASH",
    "name": "CASH Trading",
    "market_ask": "48203.05",
    "market_bid": "48188.15",
    "indicator": -1,
    "currency": "JPY",
    "currency_pair_code": "BTCJPY",
    "symbol": "¥",
    "fiat_minimum_withdraw": "1500.0",
    "pusher_channel": "product_cash_btcjpy_5",
    "taker_fee": "0.0",
    "maker_fee": "0.0",
    "low_market_bid": "47630.99",
    "high_market_ask": "48396.71",
    "volume_24h": "2915.62736652",
    "last_price_24h": "48217.2",
    "last_traded_price": "48203.05",
    "last_traded_quantity": "1.0",
    "quoted_currency": "JPY",
    "base_currency": "BTC",
    "exchange_rate": "0.009398151671149725"
}
Raises:QuoineResponseException, QuoineAPIException
get_products()

Get the list of all available products

https://developers.quoine.com/#products

products = client.get_products()
Returns:list - List of product dictionaries
[
    {
    "id": 5,
    "product_type": "CurrencyPair",
    "code": "CASH",
    "name": "CASH Trading",
    "market_ask": "48203.05",
    "market_bid": "48188.15",
    "indicator": -1,
    "currency": "JPY",
    "currency_pair_code": "BTCJPY",
    "symbol": "¥",
    "fiat_minimum_withdraw": "1500.0",
    "pusher_channel": "product_cash_btcjpy_5",
    "taker_fee": "0.0",
    "maker_fee": "0.0",
    "low_market_bid": "47630.99",
    "high_market_ask": "48396.71",
    "volume_24h": "2915.627366519999999998",
    "last_price_24h": "48217.2",
    "last_traded_price": "48203.05",
    "last_traded_quantity": "1.0",
    "quoted_currency": "JPY",
    "base_currency": "BTC",
    "exchange_rate": "0.009398151671149725"
    },
    #...
]
Raises:QuoineResponseException, QuoineAPIException