question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Errors fetching open orders from Cryptopia

See original GitHub issue

I grabbed a symbol from the exchange.symbols list (‘PIVX/BTC’) which is supported inside the cryptopia’s exchange

In [26]: exchange.market('PIVX/BTC')
Out[26]:
{'base': 'PIVX',
 'id': 4214,
 'info': {'AskPrice': 0.00082069,
  'BaseVolume': 0.41610795,
  'BidPrice': 0.00079007,
  'BuyBaseVolume': 5.20009232,
  'BuyVolume': 1583194.31659784,
  'Change': -2.08,
  'Close': 0.00082096,
  'High': 0.00085196,
  'Label': 'PIVX/BTC',
  'LastPrice': 0.00082096,
  'Low': 0.00079001,
  'Open': 0.00083836,
  'SellBaseVolume': 3423.25855947,
  'SellVolume': 10379.865389,
  'TradePairId': 4214,
  'Volume': 513.02353513},
 'quote': 'BTC',
 'symbol': 'PIVX/BTC'}

But when I try to load my open orders for that market I’m getting the following error

<ipython-input-22-49afdf0484c5> in <module>()
----> 1 exchange.fetch_open_orders('PIVX/BTC')

/usr/local/lib/python3.5/dist-packages/ccxt/exchanges.py in fetch_open_orders(self, symbol, params)
   8350             # 'TradePairId': 123, # Cryptopia identifier(not required if 'Market' supplied)
   8351             # 'Count': 100, # default = 100
-> 8352         }, params)
   8353         orders = response['Data']
   8354         result = []

/usr/local/lib/python3.5/dist-packages/ccxt/exchanges.py in request(self, path, api, method, params, headers, body)
   8396                 if response['Success']:
   8397                     return response
-> 8398         raise ExchangeError(self.id + ' ' + self.json(response))
   8399
   8400 #------------------------------------------------------------------------------

ExchangeError: cryptopia {"Data":null,"Success":false,"Error":"Market not found."}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
thornycrackerscommented, Sep 12, 2017

It looks like it’s returning properly. Thanks so much!

1reaction
kroitorcommented, Sep 11, 2017

Ok, the fix is ready and available in version 1.6.89+. Please, update to the most recent version and try this short snippet to see if the problem is gone for you:

import ccxt

exchange = ccxt.cryptopia({
    "apiKey": "1b1a398d7d4c415287a3ca04107257aa", 
    "secret": "ODXmrj4JWDxVo2kaGhJ8m/BmwEcDUNmSBIf2bQtGvtA=",
})

print(exchange.fetch_open_orders('PIVX/BTC')) # returns an empty order list on this account

We will be happy if you report back whether it works for you or not. Thx again, feel free to reopen this issue if you still have problems with it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update for Cryptopia Claimants & Common Portal Errors ...
Process, Details. 1. Claims registration, Allows the registration of account holders' details and to make claims for their account balances.
Read more >
Beware of scammers posing as... - Cryptopia Exchange
Hi, I'm trying to access my account. But it keeps saying my password is wrong. Which it isn't. Then I try to reset...
Read more >
Apr 5, 2018
We have reinstated the DOGE Base Market on Cryptopia. To ensure the re-opening is as fair as possible for users, we have removed...
Read more >
CryptopiaTradeService (XChange 5.0.13 API)
declaration: package: org.knowm.xchange.cryptopia.service, class: CryptopiaTradeService. ... Returns: the open orders, null if some sort of error occurred.
Read more >
How to get my money back from cryptopia
In a blog post-Wednesday, the New Zealand branch of accountancy firm Grant Thornton said it has opened a claims portal allowing affected users...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found