conset

package
v0.0.0-...-41c3c42 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BUY_HIGH  = 1 // 买入开多/(现货)买入
	BUY_LOW   = 2
	SELL_HIGH = 3 // 平多/(现货)卖出
	SELL_LOW  = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OPERATION

type OPERATION int32

type PERIOD

type PERIOD int32
const (
	SPOT         PERIOD = iota + 100 // 现货
	SWAP                             // 永续
	WEEK                             // 当周
	WEEK_NEXT                        // 次周
	QUARTER                          // 当季
	QUARTER_NEXT                     // 次季
)

交易类型

type PLAT

type PLAT int32
const (
	OKEX PLAT = iota + 3
	QKL123
)

type SYMBOL

type SYMBOL int32
const (
	BTC_USD SYMBOL = iota + 10
	BTC_USDT
	ETH_USD
	ETH_USDT
	LTC_USD
	LTC_USDT
)

type TIMES

type TIMES int32
const (
	MIN_5 TIMES = iota + 200 // 5min
	MIN_15
	MIN_30
	H_1
	H_2
	H_4
	H_6
	H_12
	D_1
	D_5
	W_1
	M_1
)

Jump to

Keyboard shortcuts

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