Get Leg Prices

Method: private/get_leg_prices

Parameters

Parameter Type Required Description
legs Array of object true List of legs for which the prices will be calculated
price string true Price for the whole leg structure

legs Object

Parameter Type Required Description
instrumentName string true Instrument name
quantity string false It represents the requested trade size. For perpetual and inverse futures the amount is in USD units. For options and linear futures and it is the underlying base currency coin
side string true Direction of trade from the maker perspective

Response

Name Type Description
quantity string This value multiplied by the ratio of a leg gives trade size on that leg
legs array of object
> side string Direction: buy, or sell
> instrumentName string Unique instrument identifier
> price string Price for a leg
> ratio integer Ratio of amount between legs

Response Example

{
  "rid": 1,
  "result": {
    "legs": [
      {
        "ratio": 1,
        "instrumentName": "BTC-1NOV24-67000-C",
        "price": 0.6001,
        "side": "buy"
      },
      {
        "ratio": 1,
        "instrumentName": "BTC-1NOV24-66000-C",
        "price": 0.0001,
        "side": "sell"
      }
    ],
    "quantity": "2"
  }
}

results matching ""

    No results matching ""