Skip to content

Commit

Permalink
fixup! Huobi: Switch to types.Time
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Dec 14, 2024
1 parent c03c976 commit 96479e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions exchanges/huobi/futures_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ type FContractInfoData struct {
ContractSize float64 `json:"contract_size"`
PriceTick float64 `json:"price_tick"`
DeliveryDate string `json:"delivery_date"`
DeliveryTime types.Time `json:"delivery_time,string"`
DeliveryTime types.Time `json:"delivery_time"`
CreateDate string `json:"create_date"`
ContractStatus int64 `json:"contract_status"`
SettlementTime types.Time `json:"settlement_time,string"`
SettlementTime types.Time `json:"settlement_time"`
}
}

Expand Down
3 changes: 2 additions & 1 deletion exchanges/huobi/huobi_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ func (h *HUOBI) FetchTradablePairs(ctx context.Context, a asset.Item) (currency.
}
pairs = make([]currency.Pair, 0, len(symbols.Data))
expiryCodeDates := map[string]currency.Code{}
for _, c := range symbols.Data {
for i := range symbols.Data {
c := symbols.Data[i]
if c.ContractStatus != 1 {
continue
}
Expand Down

0 comments on commit 96479e8

Please sign in to comment.