mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-01 15:10:44 +00:00
Huobi: V2 subscription support (#1703)
* Huobi: assertify tests * Testing: Add FixtureToDataHandlerWithErrors * Huobi: Add V2 websocket support * Huobi: Fix tests racing on updatePairsOnce * Huobi: Remove unnecessary funnelData * Huobi: Clarify V1/V2 pings * Huobi: Switch to types.Time * Huobi: Disable websocket Futures and CoinMarginedFutures support * Huobi: Fix test failures on futureContracts Per-instance future codes not getting cached causin occassional fails * Huobi: Fix idiosyncratic naming using TestWs instead of TestWS * Huobi: Run WS tests in parallel
This commit is contained in:
@@ -201,8 +201,7 @@ type ModifyResponse struct {
|
||||
}
|
||||
|
||||
// Detail contains all properties of an order
|
||||
// Each exchange has their own requirements, so not all fields
|
||||
// are required to be populated
|
||||
// Each exchange has their own requirements, so not all fields are required to be populated
|
||||
type Detail struct {
|
||||
ImmediateOrCancel bool
|
||||
HiddenOrder bool
|
||||
|
||||
@@ -1189,15 +1189,15 @@ func StringToOrderStatus(status string) (Status, error) {
|
||||
switch status {
|
||||
case AnyStatus.String():
|
||||
return AnyStatus, nil
|
||||
case New.String(), "PLACED", "ACCEPTED":
|
||||
case New.String(), "PLACED", "ACCEPTED", "SUBMITTED":
|
||||
return New, nil
|
||||
case Active.String(), "STATUS_ACTIVE", "LIVE":
|
||||
return Active, nil
|
||||
case PartiallyFilled.String(), "PARTIALLY MATCHED", "PARTIALLY FILLED":
|
||||
case PartiallyFilled.String(), "PARTIAL-FILLED", "PARTIALLY MATCHED", "PARTIALLY FILLED":
|
||||
return PartiallyFilled, nil
|
||||
case Filled.String(), "FULLY MATCHED", "FULLY FILLED", "ORDER_FULLY_TRANSACTED", "EFFECTIVE":
|
||||
return Filled, nil
|
||||
case PartiallyCancelled.String(), "PARTIALLY CANCELLED", "ORDER_PARTIALLY_TRANSACTED":
|
||||
case PartiallyCancelled.String(), "PARTIAL-CANCELED", "PARTIALLY CANCELLED", "ORDER_PARTIALLY_TRANSACTED":
|
||||
return PartiallyCancelled, nil
|
||||
case PartiallyFilledCancelled.String(), "PARTIALLYFILLEDCANCELED":
|
||||
return PartiallyFilledCancelled, nil
|
||||
|
||||
Reference in New Issue
Block a user