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.

Testing limit sell

See original GitHub issue

Hi guys. Using python and your latest version.

While trying to call HitBTC’s method hitbtc.create_limit_sell_order This pops out.

Traceback (most recent call last):
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\ccxt\__init__.py", line 249, in fetch
    response = opener.open (request, timeout = int (self.timeout / 1000))
  File "C:\Program Files (x86)\Python36-32\lib\urllib\request.py", line 532, in open
    response = meth(req, response)
  File "C:\Program Files (x86)\Python36-32\lib\urllib\request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Program Files (x86)\Python36-32\lib\urllib\request.py", line 570, in error
    return self._call_chain(*args)
  File "C:\Program Files (x86)\Python36-32\lib\urllib\request.py", line 504, in _call_chain
    result = func(*args)
  File "C:\Program Files (x86)\Python36-32\lib\urllib\request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 409: Conflict

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "tests/test_ccxt.py", line 33, in f
    exchange.create_limit_sell_order('EOSETH', '0.0', '0.0')
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\ccxt\__init__.py", line 593, in create_limit_sell_order
    return self.create_order (product, 'limit', 'sell', amount, price, params)
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\ccxt\__init__.py", line 8279, in create_order
    return self.tradingPostNewOrder (self.extend (order, params))
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\ccxt\__init__.py", line 8304, in request
    return self.fetch (url, method, headers, body)
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\ccxt\__init__.py", line 284, in fetch
    self.raise_error (error, url, method, e, details)
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\ccxt\__init__.py", line 222, in raise_error
    details,
TypeError: 'NoneType' object is not callable

As a product to be selled i have tried to put EOS/ETH and EOSETH but I am getting the same error.


On LiveCoin I get on the same method an error :

Traceback (most recent call last):
  File "tests/test_ccxt.py", line 37, in f
    exchange.create_limit_sell_order('ETH/BTC', '0.0', '0.0')
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\ccxt\__init__.py", line 593, in create_limit_sell_order
    return self.create_order (product, 'limit', 'sell', amount, price, params)
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\ccxt\__init__.py", line 9384, in create_order
    return getattr (self, method) (self.extend (order, params))
AttributeError: 'livecoin' object has no attribute 'privatePostSelllimit'

On Poloniex while calling the same method with ‘ETH/BTC’ didn’t work but it did when i replaced it with BTC_ETH which is the way that their products are written.It would be amazing if we could call it with unified symbols.

Thank You and I am really sorry if one of these problems is coming from my side.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
marinsokol5commented, Jul 29, 2017

Yeah they are all gone,thank You very much.

0reactions
kroitorcommented, Jul 29, 2017

Alright, livecoin is available now since 1.1.127 and should work as expected. Please update your version, then try making a real or fake livecoin order and paste the output here (with verbose mode = True). The issue with Livecoin should be gone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Series 7 Exam Prep Market, Limit, and Stop Orders ... - YouTube
Time stamps:00:00 Introduction02:04 Opening purchase to establish a long stock position and opening sale to establish a short stock ...
Read more >
Market Order vs. Limit Order vs. Stop Order - Knopman Marks
Like the name implies, limit orders allow customers to set boundaries on the price at which they will buy or sell stock. When...
Read more >
How to Handle Limit and Stop Orders on the Series 7 Exam
The Series 7 will expect you to know all about limit and stop orders. You can receive several types of orders from custo....
Read more >
Master market orders, limit orders, stop orders with these ...
In order for the order to be executed, the market price must be $45 or higher. This ensures the investor will not sell...
Read more >
Mastering the Order Types: Limit Orders | Charles Schwab
A limit order is an order to either buy stock at a designated maximum price per share or sell stock at a minimum...
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