enums

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// https://binance-docs.github.io/apidocs/futures/en/#general-api-information
	MainnetEndpoint config.EndpointType = "https://fapi.binance.com"
	// https://binance-docs.github.io/apidocs/futures/en/#testnet
	TestnetEndpoint config.EndpointType = "https://testnet.binancefuture.com"
)
View Source
const (
	SymbolStatusPreTrading SymbolStatusType = "FUTURE"

	ContractPerpetual           ContractType = "PERPETUAL"
	ContractCurrentMonth        ContractType = "CURRENT_MONTH"
	ContractNextMonth           ContractType = "NEXT_MONTH"
	ContractCurrentQuarter      ContractType = "CURRENT_QUARTER"
	ContractNextQuarter         ContractType = "NEXT_QUARTER"
	ContractPerpetualDelivering ContractType = "PERPETUAL_DELIVERING"

	ContractStatusPendingTrading ContractStatusType = "PENDING_TRADING"
	ContractStatusTrading        ContractStatusType = "TRADING"
	ContractPreDelivering        ContractStatusType = "PRE_DELIVERING"
	ContractDelivering           ContractStatusType = "DELIVERING"
	ContractDelivered            ContractStatusType = "DELIVERED"
	ContractPreSettle            ContractStatusType = "PRE_SETTLE"
	ContractSettling             ContractStatusType = "SETTLING"
	ContractClose                ContractStatusType = "CLOSE"

	OrderStatusNew             OrderStatusType = "NEW"
	OrderStatusPartiallyFilled OrderStatusType = "PARTIALLY_FILLED"
	OrderStatusFilled          OrderStatusType = "FILLED"
	OrderStatusCanceled        OrderStatusType = "CANCELED"
	OrderStatusRejected        OrderStatusType = "REJECTED"
	OrderStatusExpires         OrderStatusType = "EXPIRED"

	OrderTypeLimit              OrderType = "LIMIT"
	OrderTypeMarket             OrderType = "MARKET"
	OrderTypeStop               OrderType = "STOP"
	OrderTypeStopMarket         OrderType = "STOP_MARKET"
	OrderTypeTakeProfit         OrderType = "TAKE_PROFIT"
	OrderTypeTakeProfitMarket   OrderType = "TAKE_PROFIT_MARKET"
	OrderTypeTrailingStopMarket OrderType = "TRAILING_STOP_MARKET"

	OrderSideBUY  OrderSideType = "BUY"
	OrderSideSELL OrderSideType = "SELL"

	PositionSideBoth  PositionSideType = "BOTH"
	PositionSideLong  PositionSideType = "LONG"
	PositionSideShort PositionSideType = "SHORT"

	// Good Til Canceled
	TimeInForceGTC TimeInForceType = "GTC"

	// Immediate Or Cancel
	TimeInForceIOC TimeInForceType = "IOC"

	// Fill or Kill
	TimeInForceFOK TimeInForceType = "FOK"

	// Good Till Crossing (Post Only)
	TimeInForceGTX TimeInForceType = "GTX"

	WorkingMarkPrice     WorkingType = "MARK_PRICE"
	WorkingContractPrice WorkingType = "CONTRACT_PRICE"

	NewOrderRespACK    NewOrderRespType = "ACK"
	NewOrderRespRESULT NewOrderRespType = "RESULT"

	KlineInterval1minutes  KlineIntervalType = "1m"
	KlineInterval3minutes  KlineIntervalType = "3m"
	KlineInterval5minutes  KlineIntervalType = "5m"
	KlineInterval15minutes KlineIntervalType = "15m"
	KlineInterval30minutes KlineIntervalType = "30m"
	KlineInterval1hours    KlineIntervalType = "1h"
	KlineInterval2hours    KlineIntervalType = "2h"
	KlineInterval4hours    KlineIntervalType = "4h"
	KlineInterval6hours    KlineIntervalType = "6h"
	KlineInterval8hours    KlineIntervalType = "8h"
	KlineInterval12hours   KlineIntervalType = "12h"
	KlineInterval1days     KlineIntervalType = "1d"
	KlineInterval3days     KlineIntervalType = "3d"
	KlineInterval1weeks    KlineIntervalType = "1w"
	KlineInterval1months   KlineIntervalType = "1M"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContractStatusType

type ContractStatusType string

type ContractType

type ContractType string

type KlineIntervalType added in v0.1.4

type KlineIntervalType string

type NewOrderRespType

type NewOrderRespType string

type OrderSideType

type OrderSideType string

type OrderStatusType

type OrderStatusType string

type OrderType

type OrderType string

type PositionSideType

type PositionSideType string

type SymbolStatusType

type SymbolStatusType string

type TimeInForceType

type TimeInForceType string

type WorkingType

type WorkingType string

Jump to

Keyboard shortcuts

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