gocryptotrader icon indicating copy to clipboard operation
gocryptotrader copied to clipboard

FTX Reduce only order

Open romanornr opened this issue 4 years ago • 1 comments

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)
	}

romanornr avatar Oct 28 '20 01:10 romanornr

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: image

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

shazbert avatar Oct 28 '20 01:10 shazbert

https://github.com/thrasher-corp/gocryptotrader/blob/master/exchanges/ftx/ftx_wrapper.go#L672 This is supported now!

thrasher- avatar Sep 23 '22 07:09 thrasher-