Get all inquires

Name
Type
Required
Description

currency

string

true

BTC / ETH

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

Name
Type
Description

inquiry_id

string

Inquiry id

user_id

string

Inquiry user id

user_name

string

Inquiry user name

currency

string

Currency: BTC / ETH

quantity

float

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

filled_quantity

float

the quantity that has been filled

direction

string

Direction: buy/sell/twoWay

kind

string

kind:option/future/spot

combo_type

string

Combo Type

is_anonymous

boolean

Whether the inquiry is anonymous.

status

string

wait_approve/active/canceled/timeout/completed

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.direction

string

The direction of single legs: buy/sell

// An example of a response message
{
    "jsonrpc" : 2.0,
    "method" : "/private/inquiries",
    "result" :[
        {
            "inquiry_id":"xxxxxxxxxxxxxxx",
            "user_id":"1231231",
            "user_name":"COOK",
            "currency":"BTC",
            "quantity":25,
            "filled_quantity":0,
            "direction":"buy",
            "is_anonymous":false,
            "status","active",
            "create_timestamp":1663926165000,
            "expire_timestamp":1663926365000,
            "legs":[
                {
                    "instrument":"BTC-25NOV22-19000-P",
                    "size":1,
                    "direction":"buy"
                }
            ]
        }
    ],
    "id" : 1
}

Last updated