gocryptotrader
gocryptotrader copied to clipboard
FTX Reduce only order
I might be totally wrong (only been using it for a few hours), and perhaps I can't find it, but not sure how I can make an order for FTX as a Reduce Only order.
ordersubmission := order.Submit{
Pair: pair,
Side: order.Buy,
Type: order.Limit,
Price: newPrice,
Amount: 0.01,
AssetType: asset.Futures,
PostOnly: true,
//ClientOrderID: "bot/Test"
}
submission, err := ftxManage.SubmitOrder(&ordersubmission)
if err != nil {
logrus.Warn(err)
}
You are totally correct. We don't have an order type for use in order.Submit struct and we don't translate it across to the function in ftx_wrapper.go:
Thanks for letting us know, you can either wait for an update or you can open a PR yourself if you feel confident enough. Just confirm with us about what you want to do.
Need any help you can contact me on Slack. GoCryptoTrader Slack
https://github.com/thrasher-corp/gocryptotrader/blob/master/exchanges/ftx/ftx_wrapper.go#L672 This is supported now!