Creating orders
Closed this issue · 2 comments
Deleted user commented
Can you create and close orders with this? Just want to make sure before I dive deep into this :)
If so, is there any example? I see that you mention that this module is capable of executing functions in the Bitmex API explorer (https://www.bitmex.com/api/explorer/).
IlanFrumer commented
https://www.bitmex.com/api/explorer/#!/Order/Order_new
examples
const api = new BitmexAPI(config);
await api.Order.new({
symbol: 'XBTUSD',
side: 'Buy',
orderQty: 10000,
ordType: 'Market'
});
await api.Order.new({
symbol: 'XBTUSD',
side: 'Buy',
orderQty: 10000,
price: 3000,
ordType: 'Limit'
});
Deleted user commented
Awesome! Wasn't sure what syntax to use, but now I see I can look at the URL for a pretty good idea o whats going on!