Documentation
¶
Overview ¶
Package exness provides an unofficial read-only Exness Trading API client.
Index ¶
- type APIError
- type APILimits
- type AccountDetails
- type AccountSettings
- type AccountState
- type AccountStateEvent
- type AccountStatePayload
- type AccountStateStreamEvent
- type Candle
- type CandleHistory
- type CandlePriceType
- type CandleQuery
- type CandleSide
- type CandleTimeframe
- type Client
- func (c *Client) Close()
- func (c *Client) Discover(ctx context.Context, refresh bool) (string, error)
- func (c *Client) GetAccount(ctx context.Context) (*AccountDetails, error)
- func (c *Client) GetCandleHistory(ctx context.Context, query CandleQuery) (*CandleHistory, error)
- func (c *Client) GetDealsHistory(ctx context.Context, query DealHistoryQuery) (*HistoryPage[DealHistoryItem], error)
- func (c *Client) GetInstrumentConditions(ctx context.Context, instrument string) (*InstrumentConditions, error)
- func (c *Client) GetInstruments(ctx context.Context) (*Instruments, error)
- func (c *Client) GetLimits(ctx context.Context) (*Limits, error)
- func (c *Client) GetOperationStatus(ctx context.Context, operationID string) (*OperationStatus, error)
- func (c *Client) GetOrdersHistory(ctx context.Context, query OrderHistoryQuery) (*HistoryPage[OrderHistoryItem], error)
- func (c *Client) GetSnapshot(ctx context.Context) (*TradingSnapshot, error)
- func (c *Client) IterDealsHistory(ctx context.Context, query DealHistoryQuery) iter.Seq2[DealHistoryItem, error]
- func (c *Client) IterOrdersHistory(ctx context.Context, query OrderHistoryQuery) iter.Seq2[OrderHistoryItem, error]
- func (c *Client) StreamAccountState(ctx context.Context, options ServerStreamOptions) iter.Seq2[AccountStateStreamEvent, error]
- func (c *Client) StreamHMR(ctx context.Context, instruments []string, options ServerStreamOptions) iter.Seq2[HmrStreamEvent, error]
- func (c *Client) StreamInstruments(ctx context.Context, instruments []string, options ServerStreamOptions) iter.Seq2[InstrumentStreamEvent, error]
- func (c *Client) StreamTicks(ctx context.Context, instruments []string, options TickStreamOptions) iter.Seq2[TickStreamEvent, error]
- func (c *Client) StreamTrading(ctx context.Context, options TradingStreamOptions) iter.Seq2[TradingStreamEvent, error]
- type ClosedOrderState
- type CommissionSettings
- type Config
- type Credentials
- type Deal
- type DealHistoryItem
- type DealHistoryQuery
- type DealType
- type Decimal
- type HistoryPage
- type HistoryQuery
- type HistoryRange
- type HmrPeriod
- type HmrSnapshot
- type HmrStreamEvent
- type HmrUpdate
- type InstrumentConditions
- type InstrumentEvent
- type InstrumentSession
- type InstrumentStreamEvent
- type Instruments
- type Limits
- type Money
- type OperationState
- type OperationStatus
- type Order
- type OrderHistoryItem
- type OrderHistoryQuery
- type Position
- type ProfitAmount
- type ProtocolError
- type RateLimit
- type RequestLimits
- type RestLimits
- type RestMethodLimits
- type ServerStreamGap
- type ServerStreamOptions
- type StreamClosed
- type StreamGap
- type StreamOptions
- type StrikeLimits
- type SwapMultiplier
- type Tick
- type TickStreamEvent
- type TickStreamGap
- type TickStreamOptions
- type TokenBucketLimit
- type TradingSnapshot
- type TradingStreamEvent
- type TradingStreamGap
- type TradingStreamOptions
- type TransactionAccountState
- type TransactionEvent
- type TransactionPayload
- type TransportError
- type WebSocketAPIError
- type WebSocketAccountLimits
- type WebSocketEndpointLimits
- type WebSocketLimits
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
APIError reports an unsuccessful REST response or WebSocket handshake. ErrorMessage is untrusted server text.
type APILimits ¶
type APILimits struct {
Rest RestLimits `json:"rest"`
WebSocket WebSocketLimits `json:"websocket"`
}
type AccountDetails ¶
type AccountDetails struct {
AccountID string `json:"account_id"`
CreateDate time.Time `json:"create_date"`
AccountName *string `json:"account_name,omitempty"`
Settings *AccountSettings `json:"settings,omitempty"`
}
type AccountSettings ¶
type AccountSettings struct {
Currency string `json:"currency"`
Leverage string `json:"leverage"`
AccountStatus string `json:"account_status"`
TradeMode string `json:"trade_mode"`
ExecutionMode string `json:"execution_mode"`
MarginCallLevel *Decimal `json:"margin_call_level,omitempty"`
StopoutLevel *Decimal `json:"stopout_level,omitempty"`
}
type AccountState ¶
type AccountStateEvent ¶
type AccountStateEvent struct {
EventType string `json:"event_type"`
EventTime time.Time `json:"event_time"`
Payload AccountStatePayload `json:"payload"`
}
type AccountStatePayload ¶
type AccountStatePayload struct {
AccountState AccountState `json:"account_state"`
}
type AccountStateStreamEvent ¶
type AccountStateStreamEvent struct {
AccountState *AccountStateEvent
Gap *ServerStreamGap
}
Successful stream events contain exactly one data field or Gap.
type Candle ¶
type Candle struct {
CandleSide
Time *time.Time `json:"time,omitempty"`
Volume *float64 `json:"volume,omitempty"`
Bid *CandleSide `json:"bid,omitempty"`
Ask *CandleSide `json:"ask,omitempty"`
}
Candle preserves flat bid/ask or nested both-side data without guessing a discriminator.
type CandleHistory ¶
type CandleHistory struct {
Candles []Candle `json:"candles"`
}
type CandlePriceType ¶
type CandlePriceType string
const ( PriceBid CandlePriceType = "bid" PriceAsk CandlePriceType = "ask" PriceBoth CandlePriceType = "both" )
type CandleQuery ¶
type CandleQuery struct {
Instrument string
Timeframe CandleTimeframe
From time.Time
To *time.Time
Count *int // Must be nonzero; negative counts are valid. Exactly one of To or Count.
PriceType CandlePriceType // Empty selects bid.
}
type CandleSide ¶
type CandleSide struct {
Open *float64 `json:"open,omitempty"`
High *float64 `json:"high,omitempty"`
Low *float64 `json:"low,omitempty"`
Close *float64 `json:"close,omitempty"`
}
CandleSide uses JSON doubles per the market-data contract, not trading Decimal strings.
type CandleTimeframe ¶
type CandleTimeframe string
const ( TimeframeS1 CandleTimeframe = "S1" TimeframeS5 CandleTimeframe = "S5" TimeframeS15 CandleTimeframe = "S15" TimeframeM1 CandleTimeframe = "M1" TimeframeM3 CandleTimeframe = "M3" TimeframeM5 CandleTimeframe = "M5" TimeframeM10 CandleTimeframe = "M10" TimeframeM15 CandleTimeframe = "M15" TimeframeM30 CandleTimeframe = "M30" TimeframeH1 CandleTimeframe = "H1" TimeframeH2 CandleTimeframe = "H2" TimeframeH4 CandleTimeframe = "H4" TimeframeD1 CandleTimeframe = "D1" TimeframeW1 CandleTimeframe = "W1" TimeframeMN CandleTimeframe = "MN" )
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is safe for concurrent use. Close prevents new operations and cancels active streams; in-flight REST calls may finish.
func (*Client) Discover ¶
Discover resolves the account host once. Set refresh after an account migration.
func (*Client) GetAccount ¶
func (c *Client) GetAccount(ctx context.Context) (*AccountDetails, error)
func (*Client) GetCandleHistory ¶
func (c *Client) GetCandleHistory(ctx context.Context, query CandleQuery) (*CandleHistory, error)
GetCandleHistory performs one request. Dynamic candle caps are enforced by the server.
func (*Client) GetDealsHistory ¶
func (c *Client) GetDealsHistory(ctx context.Context, query DealHistoryQuery) (*HistoryPage[DealHistoryItem], error)
func (*Client) GetInstrumentConditions ¶
func (*Client) GetInstruments ¶
func (c *Client) GetInstruments(ctx context.Context) (*Instruments, error)
func (*Client) GetOperationStatus ¶
func (c *Client) GetOperationStatus(ctx context.Context, operationID string) (*OperationStatus, error)
GetOperationStatus reads an existing operation once. Rejected/failed are returned as data.
func (*Client) GetOrdersHistory ¶
func (c *Client) GetOrdersHistory(ctx context.Context, query OrderHistoryQuery) (*HistoryPage[OrderHistoryItem], error)
func (*Client) GetSnapshot ¶
func (c *Client) GetSnapshot(ctx context.Context) (*TradingSnapshot, error)
func (*Client) IterDealsHistory ¶
func (c *Client) IterDealsHistory(ctx context.Context, query DealHistoryQuery) iter.Seq2[DealHistoryItem, error]
IterDealsHistory lazily yields rows and at most one error, then stops.
func (*Client) IterOrdersHistory ¶
func (c *Client) IterOrdersHistory(ctx context.Context, query OrderHistoryQuery) iter.Seq2[OrderHistoryItem, error]
IterOrdersHistory lazily yields rows and at most one error, then stops.
func (*Client) StreamAccountState ¶
func (c *Client) StreamAccountState(ctx context.Context, options ServerStreamOptions) iter.Seq2[AccountStateStreamEvent, error]
StreamAccountState yields periodic floating state without an initial snapshot. A gap invalidates the last observation; a later event is a new observation only.
func (*Client) StreamHMR ¶
func (c *Client) StreamHMR(ctx context.Context, instruments []string, options ServerStreamOptions) iter.Seq2[HmrStreamEvent, error]
StreamHMR requires explicit instruments (no "all") and a fresh snapshot before updates on every connection. Replace cached periods on every snapshot, even empty.
func (*Client) StreamInstruments ¶
func (c *Client) StreamInstruments(ctx context.Context, instruments []string, options ServerStreamOptions) iter.Seq2[InstrumentStreamEvent, error]
StreamInstruments accepts explicit names or exactly ["all"]. No initial snapshot is promised. Lists are copied; callers reconcile stale caches after gaps.
func (*Client) StreamTicks ¶
func (c *Client) StreamTicks(ctx context.Context, instruments []string, options TickStreamOptions) iter.Seq2[TickStreamEvent, error]
StreamTicks lazily yields live ticks and explicit gap events. Break or cancel ctx to release the connection. No background tick queue, sorting or deduplication is performed. The instrument list is copied; each iteration gets a fresh budget.
func (*Client) StreamTrading ¶
func (c *Client) StreamTrading(ctx context.Context, options TradingStreamOptions) iter.Seq2[TradingStreamEvent, error]
StreamTrading subscribes to transactions. A snapshot is required before any transaction on every connection. It does not merge deltas, replay or deduplicate.
type ClosedOrderState ¶
type ClosedOrderState string
const ( OrderFilled ClosedOrderState = "filled" OrderCancelled ClosedOrderState = "cancelled" OrderRejected ClosedOrderState = "rejected" )
type CommissionSettings ¶
type Config ¶
type Config struct {
Credentials *Credentials
AccountID string
DiscoveryURL string
Timeout time.Duration // REST timeout; zero selects 15 seconds. WebSockets use StreamOptions.OpenTimeout.
Transport http.RoundTripper // Optional; Close closes its idle connections.
}
type Credentials ¶
type Credentials struct {
// contains filtered or unexported fields
}
Credentials holds signing material. Its formatting methods redact both fields.
func NewCredentials ¶
func NewCredentials(apiKey, privateKey string) (*Credentials, error)
NewCredentials accepts an Exness 128-character hex key or unencrypted PKCS#8 PEM.
func (Credentials) GoString ¶
func (Credentials) GoString() string
func (Credentials) String ¶
func (Credentials) String() string
type Deal ¶
type Deal struct {
DealID string `json:"deal_id"`
Type DealType `json:"type"`
CreateTime time.Time `json:"create_time"`
OrderID *string `json:"order_id,omitempty"`
PositionID *string `json:"position_id,omitempty"`
Direction *string `json:"direction,omitempty"`
Instrument *string `json:"instrument,omitempty"`
Volume *Decimal `json:"volume,omitempty"`
Price *Decimal `json:"price,omitempty"`
Profit *ProfitAmount `json:"profit,omitempty"`
Commission *Decimal `json:"commission,omitempty"`
}
type DealHistoryItem ¶
type DealHistoryQuery ¶
type DealHistoryQuery struct {
HistoryQuery
DealType DealType
}
type Decimal ¶
type Decimal struct {
// contains filtered or unexported fields
}
Decimal preserves the API's exact decimal string. Use Rat for exact arithmetic. The zero value is unset, not a numeric zero. Construct with NewDecimal.
func NewDecimal ¶
func (Decimal) MarshalJSON ¶
func (*Decimal) UnmarshalJSON ¶
type HistoryPage ¶
type HistoryPage[T any] struct { Items []T `json:"items"` NextCursor *string `json:"next_cursor,omitempty"` HasMore *bool `json:"has_more,omitempty"` Range *HistoryRange `json:"range,omitempty"` }
type HistoryQuery ¶
type HistoryRange ¶
type HmrPeriod ¶
type HmrPeriod struct {
PeriodID string `json:"period_id"`
EventType string `json:"event_type"` // regular or periodic.
Instruments []string `json:"instruments"`
Leverage string `json:"leverage"`
StartTime string `json:"start_time"`
EndTime string `json:"end_time"`
}
HmrPeriod preserves server schedule strings, including weekly schedules. No timezone, recurrence expansion or active-now calculation is inferred.
type HmrSnapshot ¶
type HmrStreamEvent ¶
type HmrStreamEvent struct {
Snapshot *HmrSnapshot
Update *HmrUpdate
Gap *ServerStreamGap
}
type InstrumentConditions ¶
type InstrumentConditions struct {
Instrument string `json:"instrument"`
Description *string `json:"description,omitempty"`
InternationalName *string `json:"international_name,omitempty"`
Category *string `json:"category,omitempty"`
BaseCurrency *string `json:"base_currency,omitempty"`
QuoteCurrency *string `json:"quote_currency,omitempty"`
MarginCurrency *string `json:"margin_currency,omitempty"`
PointDigits *int32 `json:"point_digits,omitempty"`
CalcMode *string `json:"calc_mode,omitempty"`
ExecMode *string `json:"exec_mode,omitempty"`
MarginPercent *Decimal `json:"margin_percent,omitempty"`
ContractSize *Decimal `json:"contract_size,omitempty"`
VolumeMin *Decimal `json:"volume_min,omitempty"`
VolumeMax *Decimal `json:"volume_max,omitempty"`
VolumeStep *Decimal `json:"volume_step,omitempty"`
SwapLong *Decimal `json:"swap_long,omitempty"`
SwapShort *Decimal `json:"swap_short,omitempty"`
SwapMultipliers []SwapMultiplier `json:"swap_multipliers,omitempty"`
TradeMode *string `json:"trade_mode,omitempty"`
OrderTypes []string `json:"order_types,omitempty"`
FillingModes []string `json:"filling_modes,omitempty"`
TradeSessions []InstrumentSession `json:"trade_sessions,omitempty"`
CommissionSettings *CommissionSettings `json:"commission_settings,omitempty"`
}
type InstrumentEvent ¶
type InstrumentEvent struct {
EventType string `json:"event_type"`
EventTime time.Time `json:"event_time"`
Action string `json:"action"` // new, upd or del; payload contains full conditions.
Payload InstrumentConditions `json:"payload"`
}
type InstrumentSession ¶
type InstrumentStreamEvent ¶
type InstrumentStreamEvent struct {
Instrument *InstrumentEvent
Gap *ServerStreamGap
}
type Instruments ¶
type Instruments struct {
Instruments []string `json:"instruments"`
}
type OperationState ¶
type OperationState string
const ( OperationPending OperationState = "pending" OperationConfirmed OperationState = "confirmed" OperationRejected OperationState = "rejected" OperationFailed OperationState = "failed" )
type OperationStatus ¶
type OperationStatus struct {
OperationID string `json:"operation_id"`
Status OperationState `json:"status"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
ClientRequestID *string `json:"client_request_id,omitempty"`
ErrorCode *int32 `json:"error_code,omitempty"`
ErrorMessage *string `json:"error_message,omitempty"`
}
func (OperationStatus) IsTerminal ¶
func (s OperationStatus) IsTerminal() bool
IsTerminal is true for confirmed, rejected or failed; it does not mean success.
type Order ¶
type Order struct {
OrderID string `json:"order_id"`
OrderType string `json:"order_type"`
State string `json:"state"`
CreateTime time.Time `json:"create_time"`
PositionID *string `json:"position_id,omitempty"`
Direction *string `json:"direction,omitempty"`
Instrument *string `json:"instrument,omitempty"`
Price *Decimal `json:"price,omitempty"`
StopLossPrice *Decimal `json:"stop_loss_price,omitempty"`
TakeProfitPrice *Decimal `json:"take_profit_price,omitempty"`
UpdateTime *time.Time `json:"update_time,omitempty"`
Volume *Decimal `json:"volume,omitempty"`
Reason *string `json:"reason,omitempty"`
}
type OrderHistoryItem ¶
type OrderHistoryQuery ¶
type OrderHistoryQuery struct {
HistoryQuery
OrderState ClosedOrderState
}
type Position ¶
type Position struct {
PositionID string `json:"position_id"`
Direction string `json:"direction"`
Instrument string `json:"instrument"`
State string `json:"state"`
CreateTime time.Time `json:"create_time"`
Volume Decimal `json:"volume"`
InitialVolume *Decimal `json:"initial_volume,omitempty"`
OpenPrice *Decimal `json:"open_price,omitempty"`
MarginRate *Decimal `json:"margin_rate,omitempty"`
Commission *Decimal `json:"commission,omitempty"`
Swap *Decimal `json:"swap,omitempty"`
RolloverTime *time.Time `json:"rollover_time,omitempty"`
}
type ProfitAmount ¶
type ProtocolError ¶
type ProtocolError struct{ Message string }
func (*ProtocolError) Error ¶
func (e *ProtocolError) Error() string
type RequestLimits ¶
type RequestLimits struct {
MaxCandlesPerRequest *int `json:"max_candles_per_request,omitempty"`
MaxCandlesPerRequestDescription *string `json:"max_candles_per_request_description,omitempty"`
HistoryRangeDays *int `json:"history_range_days,omitempty"`
HistoryAgeDays *int `json:"history_age_days,omitempty"`
}
type RestLimits ¶
type RestLimits struct {
GlobalAccountRate RateLimit `json:"global_account_rate"`
Methods []RestMethodLimits `json:"methods"`
}
type RestMethodLimits ¶
type RestMethodLimits struct {
APIOperationID string `json:"api_operation_id"`
HTTPMethod string `json:"http_method"`
Path string `json:"path"`
RateLimit RateLimit `json:"rate_limit"`
Limits *RequestLimits `json:"limits,omitempty"`
}
type ServerStreamGap ¶
type ServerStreamGap = TickStreamGap
type ServerStreamOptions ¶
type ServerStreamOptions = TickStreamOptions
ServerStreamOptions and ServerStreamGap share the existing WebSocket policy.
type StreamClosed ¶
type StreamClosed struct{ Code int }
StreamClosed reports a terminal remote close code or local message-size limit. Arbitrary server close reason text is deliberately omitted.
func (*StreamClosed) Error ¶
func (e *StreamClosed) Error() string
type StreamGap ¶
type StreamGap = TickStreamGap
StreamGap signals a possible loss of continuity in any WebSocket subscription.
type StreamOptions ¶
type StreamOptions = TickStreamOptions
StreamOptions is the neutral name for all WebSocket subscription options. TickStreamOptions, TradingStreamOptions and ServerStreamOptions remain compatible.
type StrikeLimits ¶
type SwapMultiplier ¶
type Tick ¶
type Tick struct {
Instrument *string `json:"instrument,omitempty"`
Bid *float64 `json:"bid,omitempty"`
Ask *float64 `json:"ask,omitempty"`
Timestamp *time.Time `json:"timestamp,omitempty"`
}
Tick contains market-data doubles, not monetary Decimal values. Optional fields remain nil. StreamTicks checks Instrument against its subscription.
type TickStreamEvent ¶
type TickStreamEvent struct {
Tick *Tick
Gap *TickStreamGap
}
TickStreamEvent contains exactly one Tick or Gap when yielded without an error.
type TickStreamGap ¶
type TickStreamGap struct {
ReconnectAttempt int
Delay time.Duration
CloseCode *int // Nil if a connection couldn't be established.
}
TickStreamGap signals possible loss; the server cannot replay or count missed ticks.
type TickStreamOptions ¶
type TickStreamOptions struct {
MaxReconnects int
ReconnectDelay time.Duration // Default 1 second.
MaxReconnectDelay time.Duration // Default 30 seconds.
OpenTimeout time.Duration // Default 15 seconds, handshake only.
MaxMessageBytes int64 // Default 64 KiB; maximum 16 MiB.
}
TickStreamOptions controls one iteration's lifetime reconnect budget. Zero values select defaults, except MaxReconnects, whose zero disables reconnection.
type TokenBucketLimit ¶
type TradingSnapshot ¶
type TradingSnapshot struct {
AccountState AccountState `json:"account_state"`
Orders []Order `json:"orders"`
Positions []Position `json:"positions"`
}
type TradingStreamEvent ¶
type TradingStreamEvent struct {
Snapshot *TradingSnapshot
Transaction *TransactionEvent
Gap *TradingStreamGap
}
TradingStreamEvent contains exactly one snapshot, transaction or gap on success. Replace cached state on Snapshot; invalidate it on Gap and at stream termination.
type TradingStreamGap ¶
type TradingStreamGap = TickStreamGap
TradingStreamGap invalidates cached trading state; wait for a new snapshot.
type TradingStreamOptions ¶
type TradingStreamOptions = TickStreamOptions
TradingStreamOptions shares the tick transport's bounded reconnect policy.
type TransactionAccountState ¶
type TransactionAccountState struct {
AccountState
Leverage string `json:"leverage"`
}
TransactionAccountState includes leverage, required by transaction payloads.
type TransactionEvent ¶
type TransactionEvent struct {
EventType string `json:"event_type"`
Payload TransactionPayload `json:"payload"`
OperationID *string `json:"operation_id,omitempty"`
ClientRequestID *string `json:"client_request_id,omitempty"`
Status *string `json:"status,omitempty"`
ErrorCode *int `json:"error_code,omitempty"`
ErrorMessage *string `json:"error_message,omitempty"`
EventTime *time.Time `json:"event_time,omitempty"`
}
TransactionEvent includes successful changes and rejected/failed results. ErrorMessage is untrusted server data. OperationID may be absent, e.g. deposits.
type TransactionPayload ¶
type TransactionPayload struct {
Orders []Order `json:"orders,omitempty"`
Positions []Position `json:"positions,omitempty"`
Deals []Deal `json:"deals,omitempty"`
AccountState *TransactionAccountState `json:"account_state,omitempty"`
}
TransactionPayload holds changed entities, never a complete account snapshot.
type TransportError ¶
type TransportError struct {
// contains filtered or unexported fields
}
TransportError keeps a sanitized message, while supporting errors.Is/As for its cause.
func (*TransportError) Error ¶
func (e *TransportError) Error() string
func (*TransportError) Unwrap ¶
func (e *TransportError) Unwrap() error
type WebSocketAPIError ¶
WebSocketAPIError reports a subscription rejection. ErrorMessage is untrusted.
func (*WebSocketAPIError) Error ¶
func (e *WebSocketAPIError) Error() string
type WebSocketAccountLimits ¶
type WebSocketAccountLimits struct {
MaxActiveConnections int `json:"max_active_connections"`
MaxInboundMessageBytes int `json:"max_inbound_message_bytes"`
ConnectionRate TokenBucketLimit `json:"connection_rate"`
InboundMessageRate TokenBucketLimit `json:"inbound_message_rate"`
Strikes StrikeLimits `json:"strikes"`
}
type WebSocketEndpointLimits ¶
type WebSocketEndpointLimits struct {
APIOperationID string `json:"api_operation_id"`
HTTPMethod string `json:"http_method"`
Path string `json:"path"`
ConnectionRate TokenBucketLimit `json:"connection_rate"`
InboundMessageRate TokenBucketLimit `json:"inbound_message_rate"`
SubscriptionOperationRate map[string]TokenBucketLimit `json:"subscription_operation_rate"`
}
type WebSocketLimits ¶
type WebSocketLimits struct {
GlobalAccountLimits WebSocketAccountLimits `json:"global_account_limits"`
Endpoints []WebSocketEndpointLimits `json:"endpoints"`
}
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
read-account
command
|
|
|
read-events
command
|
|
|
read-market
command
|
|
|
read-ticks
command
|
|
|
read-trading
command
|