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.

Bitfinex createMarketBuyOrder ..... error "bitfinex2 createOrder not implemented yet"

See original GitHub issue

Environment

  • OS: Mac
  • Programming Language version: python 3.6.3
  • CCXT version:
  • Exchange: Bitfinex
  • Method: CreateOrder and CreateMarketBuyOrder

Error Description Calling CreateOrder or CreateMarketBuyOrder results in an error: error "bitfinex2 createOrder not implemented yet"

Note The bitfinex exchange object contents: ..... 'has': { ..... 'createOrder': True, ..... } .....

It would be good to have CreateMarketBuyOrder as part of the has dictionary as well.

Simplified code

import ccxt
import time
bfx = ccxt.bitfinex2()
bfx.apiKey = 'XXX'
bfx.secret = 'XXX'
print('BFX hasFetchOrder',bfx.hasFetchOrder)
print('BFX has fetch balance: ',bfx.has['fetchBalance'])
bfx.load_markets()

symbol1 = "QTUM/USD"
trade_amount = 10
bfx.createMarketBuyOrder(symbol1, trade_amount)
bfx.createOrder(symbol1,'Market','Buy',100)

Error Message for createMarketBuyOrder


NotSupported Traceback (most recent call last) <ipython-input-69-984cd7ad8f0a> in <module>() 1 symbol1 = “QTUM/USD” 2 trade_amount = 10 ----> 3 bfx.createMarketBuyOrder(symbol1, trade_amount)

/usr/local/lib/python3.6/site-packages/ccxt/base/exchange.py in create_market_buy_order(self, symbol, amount, params) 1013 1014 def create_market_buy_order(self, symbol, amount, params={}): -> 1015 return self.create_order(symbol, ‘market’, ‘buy’, amount, None, params) 1016 1017 def create_market_sell_order(self, symbol, amount, params={}):

/usr/local/lib/python3.6/site-packages/ccxt/bitfinex2.py in create_order(self, symbol, type, side, amount, price, params) 355 356 def create_order(self, symbol, type, side, amount, price=None, params={}): –> 357 raise NotSupported(self.id + ’ createOrder not implemented yet’) 358 359 def cancel_order(self, id, symbol=None, params={}):

NotSupported: bitfinex2 createOrder not implemented yet

Error Message for createOrder


NotSupported Traceback (most recent call last) <ipython-input-70-92f85d8cfd08> in <module>() ----> 1 bfx.createOrder(symbol1,‘Market’,‘Buy’,100) 2 # createOrder (market, type, side, amount,

/usr/local/lib/python3.6/site-packages/ccxt/bitfinex2.py in create_order(self, symbol, type, side, amount, price, params) 355 356 def create_order(self, symbol, type, side, amount, price=None, params={}): –> 357 raise NotSupported(self.id + ’ createOrder not implemented yet’) 358 359 def cancel_order(self, id, symbol=None, params={}):

NotSupported: bitfinex2 createOrder not implemented yet

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jjheskcommented, Mar 7, 2018

hi, for now i have all calls using bitfinex2 is that possible to kick back into v1 when making call for createOrder ? @kroitor

1reaction
fluffytidcommented, Jan 21, 2018

I wanted to thank you Igor, but I couldn’t, because the extension I found for chrome to do the cors has made me unable to answer here, or watch youtube, or use facebook 😃

I finally found how to disable it. Now I got through this, I’ve found this one:

Failed to load https://api.bitfinex.com/v1/order/new: Response for preflight has invalid HTTP status code 404

Will work on it. Thanks a lot for your support.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trading Error Message – Bitfinex Help Center
1. The Bitfinex platform is either in maintenance or overload ... Note: During maintenance, account holders will not be able to access wallets, ......
Read more >
ccxt Documentation - Read the Docs
Supported Exchanges. The ccxt library currently supports the following 115 cryptocurrency exchange markets and trading APIs:.
Read more >
Getting class Exchange not found? ▷ Download ccxt/ccxt +++ ...
Download ccxt / ccxt / Exchange.php - Solve class 'Exchange' not found ... camelcase() not supported yet'); } public static function hash ($request, ......
Read more >
ccxt-dev/ccxt - Gitter
Not yet, but we will look into adding that feature, thx! ... for: find_market also checks markets_by_id, and find_market has a different failure...
Read more >
CCXT手册- BFM Unity
logo id 名称 版本 文档 认证标志 ​​. ​​ _1btcxe ​1BTCXE​ ​ ​API​ ​ ​​. ​​ acx ​ACX​ 2 ​API​ ​ ​​. ​​ adara ​Adara​ 1 ​API​...
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