Bug in exchange.fetch_open_orders(market) where market is either BSV or BCH
See original GitHub issue- OS:
Windows
- Programming Language version:
Python 3.7
- CCXT version:
ccxt-1.18.661
- Exchange:
bit2c
- Method:
fetch_open_orders()
Consider the following code:
def scan_my_open_orders(exchange, markets):
my_open_orders = {}
for market in markets:
open_orders = exchange.fetch_open_orders(market)
print('[scan_my_open_orders] Scanning {} open {} orders'.format(len(open_orders), market))
if len(open_orders):
...
Resulting output:
[scan_my_open_orders] Scanning 2 open BTC/NIS orders
[scan_my_open_orders] Scanning 1 open ETH/NIS orders
[scan_my_open_orders] Scanning 0 open BCH/NIS orders <--- BUG
[scan_my_open_orders] Scanning 1 open LTC/NIS orders
[scan_my_open_orders] Scanning 2 open ETC/NIS orders
[scan_my_open_orders] Scanning 3 open BTG/NIS orders
[scan_my_open_orders] Scanning 0 open BSV/NIS orders <--- BUG
[scan_my_open_orders] Scanning 9 open GRIN/NIS orders
Analysis:
- I verified I have open orders for
BCH
(bit2c
refers to it asBCHABC
) andBSV
(bit2c
refers to it asBCHSV
). markets
parameter is the markets returned byexchange.load_markets()
Hence, fetching the open orders fails to return the open orders of those 2 coins.
What I suspect is that there is some mix-up between the following pairs:
BCHABC <-> BCH
BCHSV <-> BSV
While you check your side, I will debug the contents of fetch_open_orders()
and add some print outs to see what exactly goes wrong there
Thanks
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Exchanges — ccxt 2.4.71 documentation
Besides making basic market and limit orders, some exchanges offer margin trading (leverage), ... so, now there is BCH (for BCH ABC) and...
Read more >Bitpanda error fetchOpenOrders(), fetchOrder() #13463
On bitpanda i get follow error when i try to get some informations about trades: UncaughtException: TypeError: Cannot read properties of ...
Read more >Microsoft issues a fix for Exchange Y2K22 bug that shut ...
Microsoft has released an official fix for the Exchange server bug that cropped up at midnight on January 1st, 2022.
Read more >CCXT | PDF | Java Script | Software
6 Chapter 1. Supported Exchanges. CHAPTER 2. Exchanges By Country. The ccxt library currently supports the following cryptocurrency exchange markets and trading ...
Read more >HW 1 (FOR SHARING) : FTX.ipynb - Colaboratory
ccxt library ที่เป็นที่นิยมในการเชื่อม API กับ Exchange ... ioc = False # immidate or cancel เช่น ส่งคำสั่งไป Long 1000 market
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 FreeTop 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
Top GitHub Comments
Confirmed fix in
ccxt-1.18.663
Thanks!Ok, waiting the 10 minutes and retesting