Versions in this module Expand all Collapse all v1 v1.1.1 Apr 30, 2022 v1.1.0 Apr 25, 2022 Changes in this version + const ACCEPT + const APPLICATION_JSON + const APPLICATION_JSON_UTF8 + const CONTENT_TYPE + const COOKIE + const ENGLISH + const LOCALE + const OK_ACCESS_KEY + const OK_ACCESS_PASSPHRASE + const OK_ACCESS_SIGN + const OK_ACCESS_TIMESTAMP + const RequestMethodGET + const RequestMethodPOST + const SIMPLIFIED_CHINESE + const SideTypeBuy + const SideTypeSell + const TRADITIONAL_CHINESE + const X_SIMULATE_TRADING + var IsSimulate = false + var TimeOut = 10 * time.Second + var UseAWSnet = false + var UseTestnet = false + type Client struct + BaseURL common.BaseURL + Method common.RequestMethod + Param map[string]interface{} + Url string + func NewClient(config *Config) *Client + func (r *Client) Run() (res *RestApiResult, err error) + func (r *Client) SetMethod(method common.RequestMethod) *Client + func (r *Client) SetParam(param map[string]interface{}) *Client + func (r *Client) SetUrl(url string) *Client + type Config struct + func NewConfig(apiKey, secretKey, passPhrase string) *Config + type OkexApiResponse struct + Code string + Data []map[string]interface{} + Msg string + type RestApiResult struct + Body string + Code int + Header string + Param string + ReqUsedTime time.Duration + TotalUsedTime time.Duration + Url string + V5Response OkexApiResponse