class

Binance::Responses::Order

Inherits JSON::Serializable < Reference < Object

Typical Server Response: { "symbol": "LTCBTC", "orderId": 28, "origClientOrderId": "myOrder1", "clientOrderId": "cancelMyOrder1", "transactTime": 1507725176595, "price": "1.00000000", "origQty": "10.00000000", "executedQty": "8.00000000", "cummulativeQuoteQty": "8.00000000", "status": "CANCELED", "timeInForce": "GTC", "type": "LIMIT", "side": "SELL" }

price used to be filled, now it seems to always be 0.0

Change log 2018-07-18 states:

cummulativeQuoteQty field added to order responses and execution reports (as variable Z). Represents the cummulative amount of the quote that has been spent (with a BUY order) or received (with a SELL order). Historical orders will have a value < 0 in this field indicating the data is not available at this time.

cummulativeQuoteQty divided by cummulativeQty will give the average price for an order.

NOTE: I am not sure exactly what this means, so there are two test specs The original spec in order_spec still has original cassette (signed, so not committed to repo) where price was conveyed, but cummulativeQuoteQty is zero New spec is in new_order_spec and it captures what is apparent current behavior

average_price implements the above price calculation effective_fill_price computes from all the fills on the order, but order must be placed with responseType = "FULL" to get that data on placing market orders.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

average_price
Source
client_order_id
Source
cummulative_quote_quantity
Source
effective_fill_price
Source
executed_quantity
Source
fills
Source
order_id
Source
order_list_id
Source
order_type
Source
orig_client_order_id
Source
original_quantity
Source
price
Source
side
Source
status
Source
stop_price
Source
symbol
Source
time
Source
time_in_force
Source
transaction_time
Source
update_time
Source