mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
btcmarkets: update order submission (#908)
* btcm/order: update order submission * btcmarkets: addr nits * btcmarkets: reinstate new order test
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user