Binance fetchClosedOrders() retrieves data from Binance but return array is missing nearly all data from method call
See original GitHub issueVersion Info
- OS: Ubuntu 20.04.3
- Programming Language version: PHP 8.1.4
- CCXT version: 1.80.7
Description
This was working with CCXT version 1.42.23, after updating to the latest (/version above) it ceased working. The data is still returned from the allOrders
endpoint but doesn’t appear to be returned correctly from the $exchange->fetchClosedOrders
call.
Code to Reproduce
<?php
date_default_timezone_set('UTC');
$exchange_id = 'binance';
$exchange_class = '\\ccxt\\' . $exchange_id;
$exchange = new $exchange(array(
'apiKey': '[removed]',
'secret': '[removed]',
));
$exchange->verbose = true;
$trades = $exchange->fetchClosedOrders("LTC/GBP");
print_r($trades);
Output
Array
(
[0] => fetch Request:
[1] => binance
[2] => GET
[3] => https://api.binance.com/api/v3/allOrders?timestamp=[removed]&symbol=LTCGBP&recvWindow=5000&signature=[removed]
[4] => RequestHeaders:
[5] => Array
(
[X-MBX-APIKEY] => [removed]
)
[6] => RequestBody:
[7] =>
)
Array
(
[0] => fetch Response:
[1] => binance
[2] => GET
[3] => https://api.binance.com/api/v3/allOrders?timestamp=[removed]&symbol=LTCGBP&recvWindow=5000&signature=[removed]
[4] => 200
[5] =>
[6] => ResponseHeaders:
[7] => Array
(
[removed]
)
[8] => ResponseBody:
[9] => [{"symbol":"LTCGBP","orderId",[removed],"orderListId":-1,"clientOrderId":"[removed]","price":"88.59000000","origQty":"[removed]","executedQty":"13.15524000","cummulativeQuoteQty":"1165.42271160","status":"FILLED","timeInForce":"GTC","type":"LIMIT","side":"BUY","stopPrice":"0.00000000","icebergQty":"0.00000000","time":[removed],"updateTime":[removed],"isWorking":true,"origQuoteOrderQty":"0.00000000"}, {"symbol":"LTCGBP","orderId":[removed],"orderListId":-1,"clientOrderId":"x-[removed]","price":"131.13000000","origQty":"9.97500000","executedQty":"9.97500000","cummulativeQuoteQty":"1308.02175000","status":"FILLED","timeInForce":"GTC","type":"LIMIT","side":"BUY","stopPrice":"0.00000000","icebergQty":"0.00000000","time":[removed],"updateTime":[removed],"isWorking":true,"origQuoteOrderQty":"0.00000000"}]
)
Array
(
[0] => closed
[1] => closed
)
Potentially related to https://github.com/ccxt/ccxt/issues/12925
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Missing data from Binance API or CSV (LEGACY) - Support
Missing data from Binance API or CSV (LEGACY) ... This article refers to the old Binance Legacy Import. We strongly recommend using the...
Read more >How to Retrieve the Deposit that Hasn't Arrived with Self ...
If your deposited funds haven't arrived in your Binance account, you can apply for self-service recovery to retrieve the funds.
Read more >How to Easily Fetch Binance Historical Trades Using Python
In this article, I will guide you through the process of creating a reliable Python script to extract historical trade data from Binance....
Read more >CCXT | PDF | Java Script | Software - Scribd
14.2 I am calling a method and I get an error, what am I doing wrong? ... binance binance Binance * API CCXT...
Read more >Binance tracking is missing many transactions : r/accointing
Only way to fix it, is to delete all history data. But then again, API works, but many data missing, especially margin account....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
🙏 all good, thanks for the fix
@kroitor
fetch_orders()
returns a correctly filled array for me using both mentioned versions of CCXT