Documentation ¶
Index ¶
Constants ¶
View Source
const ( ApiHostMainnet = "https://api.dydx.exchange" ApiHostGoerli = "https://api.stage.dydx.exchange" WsHostMainnet = "wss://api.dydx.exchange/v3/ws" WsHostGoerli = "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" )
View Source
const ( MARKET = "MARKET" LIMIT = "LIMIT" STOP = "STOP" TRAILINGSTOP = "TRAILING_STOP" TAKEPROFIT = "TAKE_PROFIT" )
View Source
const ( BUY = "BUY" SELL = "SELL" )
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" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiKeyCredentials ¶
Click to show internal directories.
Click to hide internal directories.