Exchange Market order on Bitfinex with REST API
torquemada163 opened this issue · 2 comments
torquemada163 commented
Hello!
Do you can show me how make a Exchange Market order? And Exchange Limit, please!
Thanks!
deepbrook commented
Here's an example.
from bitex import Bitfinex
b = Bitfinex(key='api_key', secret='secret')
pair = 'btcusd'
price = '10000'
size = '1'
order_type = 'exchange market' # or 'exchange limit' for limit orders
b.ask(pair, price, size, type=order_type) # b.bid to place a buy order
kwargs
can be any parameter supported by the bitfinex API.
In order to keep things organized, please do NOT post comments asking for help in other issues - I'm aware of all of them, and will reply as soon as I find the time. Thanks!
torquemada163 commented
Thank you very much!