Documentation
¶
Index ¶
Constants ¶
View Source
const ( PRODUCTION = "wss://api.dydx.exchange/v3/ws" STAGING = "wss://api.stage.dydx.exchange/v3/ws" )
View Source
const ( UNDEFINED = "undefined" ERROR = "error" ACCOUNT = "v3_accounts" MARKETS = "v3_markets" ORDERBOOK = "v3_orderbook" TRADES = "v3_trades" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Account ¶
type Account struct {
Orders []private.Order `json:"orders"`
private.AccountResponse
private.TransfersResponse
private.FundingPaymentsResponse
}
type Response ¶
type Response struct {
Type string `json:"type"`
Channel string `json:"channel"`
ConnectionID string `json:"connection_id,omitempty"`
ID string `json:"id,omitempty"`
MessageID int `json:"message_id,omitempty"`
Contents any `json:"-"`
Account Account `json:"-"`
Markets public.MarketsResponse `json:"-"`
Trades public.TradesResponse `json:"-"`
Orderbook public.OrderbookResponse `json:"-"`
Results error
}
Click to show internal directories.
Click to hide internal directories.