constants

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiHostMainnet = "https://api.dydx.exchange"
	ApiHostRopsten = "https://api.stage.dydx.exchange"
	WsHostMainnet  = "wss://api.dydx.exchange/v3/ws"
	WsHostRopsten  = "wss://api.stage.dydx.exchange/v3/ws"
)
View Source
const (
	SignatureTypeNoPrepend   = 0
	SignatureTypeDecimal     = 1
	SignatureTypeHexadecimal = 2
)
View Source
const (
	Domain                       = "dYdX"
	Version                      = "1.0"
	Eip712DomainStringNoContract = "EIP712Domain(string name,string version,uint256 chainId)"
)
View Source
const (
	OffChainOnboardingAction    = "dYdX Onboarding"
	OffChainKeyDerivationAction = "dYdX STARK Key"
)
View Source
const (
	NetworkIdMainnet = 1
	NetworkIdGoerli  = 5
)
View Source
const (
	OPEN        = "OPEN"
	CLOSED      = "CLOSED"
	LIQUIDATED  = "LIQUIDATED"
	LIQUIDATION = "LIQUIDATION"
	UNTRIGGERED = "UNTRIGGERED"
)
View Source
const (
	MARKET       = "MARKET"
	LIMIT        = "LIMIT"
	STOP         = "STOP"
	STOPLIMIT    = "STOP_LIMIT"
	TRAILINGSTOP = "TRAILING_STOP"
	TAKEPROFIT   = "TAKE_PROFIT"
)
View Source
const (
	BUY  = "BUY"
	SELL = "SELL"
)
View Source
const (
	LONG  = "LONG"
	SHORT = "SHORT"
)
View Source
const (
	TimeInForceGtt = "GTT"
	TimeInForceFok = "FOK"
	TimeInForceIoc = "IOC"
)
View Source
const (
	OrderStatusPending     = "PENDING"
	OrderStatusOpen        = "OPEN"
	OrderStatusFilled      = "FILLED"
	OrderStatusCanceled    = "CANCELED"
	OrderStatusUntriggered = "UNTRIGGERED"
)
View Source
const (
	Resolution1D     = "1DAY"
	Resolution4HOURS = "4HOURS"
	Resolution1HOUR  = "1HOUR"
	Resolution30MINS = "30MINS"
	Resolution15MINS = "15MINS"
	Resolution5MINS  = "5MINS"
	Resolution1MIN   = "1MIN"
)
View Source
const Eip712OnboardingActionStructString = "dYdX(string action,string onlySignOn)"
View Source
const Eip712OnboardingActionStructStringTestnet = "dYdX(string action)"
View Source
const Eip712StructName = "dYdX"
View Source
const OnlySignOnDomainMainnet = "https://trade.dydx.exchange"

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