Closed StarBalll closed 2 years ago
Hello! Some description what you want would be cool!
https://binance-docs.github.io/apidocs/futures/en/#event-order-update
This is futures
Push analysis of order information
`{
"e":"ORDER_TRADE_UPDATE", // Event Type
"E":1568879465651, // Event Time
"T":1568879465650, // Transaction Time
"o":{
"s":"BTCUSDT", // Symbol
"c":"TEST", // Client Order Id
// special client order id:
// starts with "autoclose-": liquidation order
// "adl_autoclose": ADL auto close order
"S":"SELL", // Side
"o":"TRAILING_STOP_MARKET", // Order Type
"f":"GTC", // Time in Force
"q":"0.001", // Original Quantity
"p":"0", // Original Price
"ap":"0", // Average Price
"sp":"7103.04", // Stop Price. Please ignore with TRAILING_STOP_MARKET order
"x":"NEW", // Execution Type
"X":"NEW", // Order Status
"i":8886774, // Order Id
"l":"0", // Order Last Filled Quantity
"z":"0", // Order Filled Accumulated Quantity
"L":"0", // Last Filled Price
"N":"USDT", // Commission Asset, will not push if no commission
"n":"0", // Commission, will not push if no commission
"T":1568879465651, // Order Trade Time
"t":0, // Trade Id
"b":"0", // Bids Notional
"a":"9.91", // Ask Notional
"m":false, // Is this trade the maker side?
"R":false, // Is this reduce only
"wt":"CONTRACT_PRICE", // Stop Price Working Type
"ot":"TRAILING_STOP_MARKET", // Original Order Type
"ps":"LONG", // Position Side
"cp":false, // If Close-All, pushed with conditional order
"AP":"7476.89", // Activation Price, only puhed with TRAILING_STOP_MARKET order
"cr":"5.0", // Callback Rate, only puhed with TRAILING_STOP_MARKET order
"rp":"0" // Realized Profit of the trade
}
}`
If you have the code ready, do you want to make a pull request? This will add you to contributors list :)
and one example of received raw data of this event for the test unit would be nice too! thanks you!
我提交的方式对么...
https://binance-docs.github.io/apidocs/futures/en/#event-balance-and-position-update
"e": "ACCOUNT_UPDATE", // Event Type
its not hard to do that. just create a fork, edit the fork and when its ready click pull request.
Here is a step by step description: https://www.dataschool.io/how-to-contribute-on-github/
def binance_futures_websocket
->>
line 577
line elif stream_data['data']['e'] == 'executionReport': #next