mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-09 07:26:48 +00:00
Wrapper update modify order (#222)
* Changed IBotExchange interface ModifyOrder function paramater and return value to exchange type for easier addition or retraction of variables. * Function ModifyOrder for Binance not supported via API * Change to unsupported function for exchange ZB * Change to unsupported function for exchange Yobit * Add modify order support for Poloniex * Change to unsupported function for exchange Okex * Change to unsupported function for exchange Localbitcoins * Change to unsupported function for exchange Liqui * Change to unsupported function for exchange LakeBTC * Change to unsupported function for exchange Kraken * Change to unsupported function for exchange Itbit * Change to unsupported function for exchange HuobiHadax * Change to unsupported function for exchange Huobi * Change to unsupported function for exchange HitBTC * Change to unsupported function for exchange Gemini * Change to unsupported function for exchange GateIO * Change to unsupported function for exchange Exmo * Change to unsupported function for exchange Coinut * Change to unsupported function for exchange Coinbase * Change to unsupported function for exchange BTCMarkets * Change to unsupported function for exchange Bittrex * Change to unsupported function for exchange Bitstamp * Add modify order support for Bitmex * Add verbose header information in request package * Add modify order support for Bithumb exchange * Change to unsupported function for exchange Bitflyer * Change to unsupported function for exchange Bitfinex * Change to unsupported function for exchange ANX * Change interface function signature * Rm redundant code for authenticated requests in Bithumb * Add error check if decimal values supplied for create or modifying an order on Bitmex * Added test functions across the exchanges * Rm comment for modify order on Alphapoint exchange * Update tmpl file for exchange wrapper
This commit is contained in:
committed by
Adrian Gallagher
parent
2993ae17cf
commit
7c3134f35b
@@ -340,3 +340,10 @@ func TestGetAccountInfo(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestModifyOrder(t *testing.T) {
|
||||
_, err := i.ModifyOrder(exchange.ModifyOrder{})
|
||||
if err == nil {
|
||||
t.Error("Test failed - ModifyOrder() error")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -201,8 +201,8 @@ func (i *ItBit) SubmitOrder(p pair.CurrencyPair, side exchange.OrderSide, orderT
|
||||
|
||||
// ModifyOrder will allow of changing orderbook placement and limit to
|
||||
// market conversion
|
||||
func (i *ItBit) ModifyOrder(orderID int64, action exchange.ModifyOrder) (int64, error) {
|
||||
return 0, common.ErrNotYetImplemented
|
||||
func (i *ItBit) ModifyOrder(action exchange.ModifyOrder) (string, error) {
|
||||
return "", common.ErrFunctionNotSupported
|
||||
}
|
||||
|
||||
// CancelOrder cancels an order by its corresponding ID number
|
||||
|
||||
Reference in New Issue
Block a user