constants

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	/*
	  http headers
	*/
	ContentType        = "Content-Type"
	BgAccessKey        = "ACCESS-KEY"
	BgAccessSign       = "ACCESS-SIGN"
	BgAccessTimestamp  = "ACCESS-TIMESTAMP"
	BgAccessPassphrase = "ACCESS-PASSPHRASE"
	ApplicationJson    = "application/json"

	EN_US  = "en_US"
	ZH_CN  = "zh_CN"
	LOCALE = "locale="

	/*
	  http methods
	*/
	GET    = "GET"
	POST   = "POST"
	DELETE = "DELETE"

	/*
	 others
	*/
	ResultDataJsonString = "resultDataJsonString"
	ResultPageJsonString = "resultPageJsonString"

	/**
	 * SPOT URL
	 */
	SpotPublic  = "/api/spot/v1/public"
	SpotMarket  = "/api/spot/v1/market"
	SpotAccount = "/api/spot/v1/account"
	SpotTrade   = "/api/spot/v1/trade"

	/**
	 * MIX URL
	 */
	MixPlan     = "/api/mix/v1/plan"
	MixMarket   = "/api/mix/v1/market"
	MixAccount  = "/api/mix/v1/account"
	MixOrder    = "/api/mix/v1/order"
	MixPosition = "/api/mix/v1/position"
	MixTrace    = "/api/mix/v1/trace"

	/**
	 * broker url
	 */
	BrokerAccount = "/api/broker/v1/account"

	/**
	websocket
	*/
	WsAuthMethod        = "GET"
	WsAuthPath          = "/user/verify"
	WsOpLogin           = "login"
	WsOpUnsubscribe     = "unsubscribe"
	WsOpSubscribe       = "subscribe"
	TimerIntervalSecond = 5
	ReconnectWaitSecond = 60
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL