btcmarkets: update order submission (#908)

* btcm/order: update order submission

* btcmarkets: addr nits

* btcmarkets: reinstate new order test
This commit is contained in:
Ryan O'Hara-Reid
2022-03-25 15:05:24 +11:00
committed by GitHub
parent 489e2ebade
commit 022001fecf
12 changed files with 321 additions and 97 deletions

View File

@@ -157,16 +157,14 @@ func TestExchange_SubmitOrder(t *testing.T) {
t.Fatal(err)
}
tempOrder := &order.Submit{
Pair: c,
Type: orderType,
Side: orderSide,
TriggerPrice: 0,
TargetAmount: 0,
Price: orderPrice,
Amount: orderAmount,
ClientID: orderClientID,
Exchange: exchName,
AssetType: asset.Spot,
Pair: c,
Type: orderType,
Side: orderSide,
Price: orderPrice,
Amount: orderAmount,
ClientID: orderClientID,
Exchange: exchName,
AssetType: asset.Spot,
}
_, err = exchangeTest.SubmitOrder(context.Background(), tempOrder)
if err != nil {

View File

@@ -182,16 +182,14 @@ func TestWrapper_SubmitOrder(t *testing.T) {
t.Fatal(err)
}
tempOrder := &order.Submit{
Pair: c,
Type: orderType,
Side: orderSide,
TriggerPrice: 0,
TargetAmount: 0,
Price: orderPrice,
Amount: orderAmount,
ClientID: orderClientID,
Exchange: "true",
AssetType: asset.Spot,
Pair: c,
Type: orderType,
Side: orderSide,
Price: orderPrice,
Amount: orderAmount,
ClientID: orderClientID,
Exchange: "true",
AssetType: asset.Spot,
}
_, err = testWrapper.SubmitOrder(context.Background(), tempOrder)
if err != nil {