Closed andrebrener closed 5 years ago
i found the problem in the method new_order_op which does not format the order info as requested by bitfinex : https://docs.bitfinex.com/v2/reference#ws-input-order-multi-op
to make it work until the issue is resolved you can do this :
trade_client = WssClient(BFX_KEY, BFX_SECRET)
trade_client.authenticate(callback=handle_account_messages)
trade_client.start()
time.sleep(5)
order_operation = trade_client.new_order_op(
order_type='FOK',
symbol='BTCUSD',
amount=0.004,
price=1000.0
)
order_operation = ["on", order_operation]
trade_client.multi_order(
operations=[order_operation]
)
It seems it's not accepting float values for amount & price params. It gives me amount: invalid
and price: invalid
, but when changing them to strings it worked fine
I'm using python 3.7.4 in OSX
Now I'm getting this error:
My code is the following: