tanya/okx/instrmentsApi.go
zhangkun9038@dingtalk.com 18f15b0534 up
2025-03-06 00:31:55 +08:00

22 lines
725 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package okx
// InstrumentsRequest 定义获取交易对信息的请求参数
type InstrumentsRequest struct {
InstType string `url:"instType"` // 必填SPOT, SWAP, FUTURES, OPTION
Uly string `url:"uly,omitempty"` // 可选:标的指数
InstID string `url:"instId,omitempty"` // 可选具体交易对ID
}
// Instrument 定义交易对信息的返回结构
type Instrument struct {
InstType string `json:"instType"`
InstID string `json:"instId"`
Uly string `json:"uly,omitempty"`
BaseCcy string `json:"baseCcy"`
QuoteCcy string `json:"quoteCcy"`
TickSz string `json:"tickSz"`
LotSz string `json:"lotSz"`
State string `json:"state"`
// 可根据需要添加更多字段
}