Kucoin: Add order execution limits (#1369)

* cmd/exchange_template: Add wrapper function

* exchanges: force UpdateOrderExecutionLimits to wrappers as this is important for order deployment

* kucoin: Add spot order execution limits

* linter: fix

* glorious: nits

* kucoin: change from name to symbol for correct fee fetching and order deployment

* WHAAAAAAAT says Vitalik

* kucoin: Add futures limit support, fix insertion of non margin tradable pairs, update naming and add comments.

* kucoin: implement master branch changes

* Update exchanges/kucoin/kucoin_test.go

Co-authored-by: Scott <gloriousCode@users.noreply.github.com>

* kucoin/test: update commentary

---------

Co-authored-by: Ryan O'Hara-Reid <ryan.oharareid@thrasher.io>
Co-authored-by: Scott <gloriousCode@users.noreply.github.com>
This commit is contained in:
Ryan O'Hara-Reid
2023-11-14 11:34:38 +11:00
committed by GitHub
parent 340558b8ea
commit a13a6c3248
24 changed files with 202 additions and 22 deletions

View File

@@ -2453,14 +2453,6 @@ func TestUpdateCurrencyStates(t *testing.T) {
}
}
func TestUpdateOrderExecutionLimits(t *testing.T) {
t.Parallel()
var b Base
if err := b.UpdateOrderExecutionLimits(context.Background(), asset.Spot); !errors.Is(err, common.ErrNotYetImplemented) {
t.Errorf("received: %v, expected: %v", err, common.ErrNotYetImplemented)
}
}
func TestSetTradeFeedStatus(t *testing.T) {
t.Parallel()
b := Base{