Get all quotes

Name
Type
Required
Description

currency

string

true

BTC / ETH

// An example of a request message
{
    "jsonrpc" : 2.0,
    "method" : "/private/quotes",
    "params" : {
        "currency":"BTC"
    },
    "id" : 1
}

Name
Type
Description

quote_id

string

Quote id

user_id

string

Quote user id

user_name

string

Quote user name

currency

string

Currency: BTC / ETH

side

string

Side quoted by maker: bid/ask

kind

string

Kind:option/future/spot

combo_type

string

Combo Type

quantity

float

For single leg, quantity of the leg; For multileg, quantity of the combo.

price

float

Option value for single leg, net option value for multilegs (taking selling Bull Spread as an example, the meaning of bidding this price is the difference between the leg 1 sell atm call say 0.0500, and leg 2 buy otm call say 0.0100, net = -0.0500+0.0100 = -0.0400. Taker bid a minus price thus net collecting premiums. Maker ask a minus price thus net paying premiums.).

ref_inquiry_id

string

The associated inquiry id, the quote with this field is only visible to the inquirer.

is_private

boolean

Whether the quote is private.

is_anonymous

boolean

Whether the quote is anonymous.

status

string

wait_approve/active/canceled/timeout/completed/closed

close_reason

string

The reason why the quote was closed.

1.ref_inquiry_canceled

2.ref_inquiry_trade_away

3.ref_inquiry_timeout

4.close_by_admin

ref_index_price

float

Index price at the time of quote

create_timestamp

long

Inquiry creation timestamp (Number of milliseconds since the Unix epoch ie January 1st, 1970 at 00:00:00 UTC)

expire_timestamp

long

Inquiry expiration timestamp (Number of milliseconds since the Unix epoch ie January 1st, 1970 at 00:00:00 UTC)

legs.instrument

string

Contract name

legs.size

float

For single leg, legs.size is 1. For multilegs, legs.size is the quantity of other legs divided by the quantity of smallest leg (if the quantities of leg1 and leg2 are 50 and 30, then legs.size of leg1 is 1.667, legs.size of leg2 is 1).

legs.price

float

Unit price of each contract

legs.direction

string

The direction of single legs: buy/sell

// An example of a response message
{
    "jsonrpc" : 2.0,
    "method" : "/private/quotes",
    "result" :[
        {
            "quote_id":"xxxxxxxxxxxxxxx",
            "user_id":"123321",
            "user_name":"COOK",
            "currency":"BTC",
            "quantity":25,
            "price":0.0031,
            "side":"ask",
            "ref_index_price":16421.1,
            "ref_inquiry_id":"zzzzzz",
            "is_private":true,
            "is_anonymous":false,
            "status","active",
            "create_timestamp":1663926165000,
            "expire_timestamp":1663926365000,
            "legs":[
                {
                    "instrument":"BTC-25NOV22-19000-P",
                    "size":1,
                    "direction":"buy",
                    "price":0.0031
                }
            ]
        }
    ],
    "id" : 1
}

Last updated