Versions in this module Expand all Collapse all v1 v1.0.0 Oct 11, 2021 Changes in this version + const APIv1 + const APIv2 + const APIv3 + const BasicAuth + const CurrentAPIVersion + const JWTAuth + const JWTDefaultTTL + const MDAPICategory + const TRADEAPICategory + var APIVersions = [3]string + var Scopes = []string + type Auth struct + Basic BasicAuthMethod + JWT JWTAuthMethod + type BasicAuthMethod struct + Password string + Username string + type CancelOrderPayload struct + Action string + type ChangeV1 struct + BasePrice string + DailyChange string + SymbolID string + type ChangeV2 ChangeV1 + type ChangeV3 struct + DailyChange string + LastSessionClosePrice string + SymbolID string + type ChangesV1 []ChangeV1 + func NewChangesV1() *ChangesV1 + type ChangesV2 []ChangeV2 + func NewChangesV2() *ChangesV2 + type ChangesV3 []ChangeV3 + func NewChangesV3() *ChangesV3 + type Currency string + type CurrencyPos struct + Code string + ConvertedValue string + Value string + type DatetimePayload struct + Datetime string + type DatetimeRangePayload struct + From int + To int + type Exchange struct + Country string + ID string + Name string + type Exchanges []Exchange + func NewExchanges() *Exchanges + type GetAccountSummaryPayload struct + Currency string + type GetActiveOrderPayload struct + Account string + Limit ResponseLimit + SymbolID string + type GetOHLCOptionalPayload struct + type GetOrdersPayload struct + Account string + Limit ResponseLimit + type GetTicksByQuotesPayload GetOHLCOptionalPayload + type GetTicksByTradesPayload GetTicksByQuotesPayload + type GetTransactionsOptionalPayload struct + Account string + Asset string + OffsetLimit OffsetLimitPayload + Order string + OrderID string + OrderPos int + UUID string + type Group struct + Exchange string + Group string + Name string + Types []string + type Groups []Group + func NewGroups() *Groups + type HTTPApi struct + Auth Auth + func NewAPI(baseAPIURL, version, ApplicationID, ClientID, SharedKey string, JwtTTL int, ...) HTTPApi + func (h HTTPApi) CancelOrder(orderID string, c CancelOrderPayload) error + func (h HTTPApi) GetAccountSummary(account, currency string, p GetAccountSummaryPayload) (interface{}, error) + func (h HTTPApi) GetActiveOrdersV1() (*OrdersV1, error) + func (h HTTPApi) GetActiveOrdersV2() (*OrdersV2, error) + func (h HTTPApi) GetActiveOrdersV3() (*OrdersV3, error) + func (h HTTPApi) GetChangesV1(symbolIDs ...string) (*ChangesV1, error) + func (h HTTPApi) GetChangesV2(symbolIDs ...string) (*ChangesV2, error) + func (h HTTPApi) GetChangesV3(symbolIDs ...string) (*ChangesV3, error) + func (h HTTPApi) GetCurrencies() (*Сurrencys, error) + func (h HTTPApi) GetExchanges() (*Exchanges, error) + func (h HTTPApi) GetExecOrdersStream() (chan []byte, chan bool) + func (h HTTPApi) GetGroups() (*Groups, error) + func (h HTTPApi) GetLastQuote(symbol string) (*Quote, error) + func (h HTTPApi) GetNearestV1(group string) (*SymbolsV1, error) + func (h HTTPApi) GetNearestV2(group string) (*SymbolsV2, error) + func (h HTTPApi) GetNearestV3(group string) (*SymbolsV3, error) + func (h HTTPApi) GetOHLCQuotes(symbol string, duration int, g GetOHLCOptionalPayload) (*OHLCQuotes, error) + func (h HTTPApi) GetOHLCTrades(symbol string, duration int, g GetOHLCOptionalPayload) (*OHLCTrades, error) + func (h HTTPApi) GetOrderV1(orderID string) (*OrderV1, error) + func (h HTTPApi) GetOrderV2(orderID string) (*OrderV2, error) + func (h HTTPApi) GetOrderV3(orderID string) (*OrderV3, error) + func (h HTTPApi) GetOrdersStream() (chan []byte, chan bool) + func (h HTTPApi) GetOrdersV1(g GetOrdersPayload) (*OrdersV1, error) + func (h HTTPApi) GetOrdersV2(g GetOrdersPayload) (*OrdersV2, error) + func (h HTTPApi) GetOrdersV3(g GetOrdersPayload) (*OrdersV3, error) + func (h HTTPApi) GetQuoteStream() (chan []byte, chan bool) + func (h HTTPApi) GetSymbolSpec(symbol string) (*SymbolSpecification, error) + func (h HTTPApi) GetSymbolV1(symbolID string) (*SymbolV1, error) + func (h HTTPApi) GetSymbolV2(symbolID string) (*SymbolV2, error) + func (h HTTPApi) GetSymbolV3(symbolID string) (*SymbolV3, error) + func (h HTTPApi) GetSymbolsByExchV1(exchange string) (*SymbolsV1, error) + func (h HTTPApi) GetSymbolsByExchV2(exchange string) (*SymbolsV2, error) + func (h HTTPApi) GetSymbolsByExchV3(exchange string) (*SymbolsV3, error) + func (h HTTPApi) GetSymbolsByGroupV1(group string) (*SymbolsV1, error) + func (h HTTPApi) GetSymbolsByGroupV2(group string) (*SymbolsV2, error) + func (h HTTPApi) GetSymbolsByGroupV3(group string) (*SymbolsV3, error) + func (h HTTPApi) GetSymbolsByTypeV1(symbolType string) (*SymbolsV1, error) + func (h HTTPApi) GetSymbolsByTypeV2(symbolType string) (*SymbolsV2, error) + func (h HTTPApi) GetSymbolsByTypeV3(symbolType string) (*SymbolsV3, error) + func (h HTTPApi) GetSymbolsV1() (*SymbolsV1, error) + func (h HTTPApi) GetSymbolsV2() (*SymbolsV1, error) + func (h HTTPApi) GetSymbolsV3() (*SymbolsV3, error) + func (h HTTPApi) GetSymbolschedule(symbolID string, useTypes bool) (*Schedule, error) + func (h HTTPApi) GetTicksByQuotes(symbol string, g GetTicksByQuotesPayload) (interface{}, error) + func (h HTTPApi) GetTicksByTrades(symbol string, g GetTicksByTradesPayload) (interface{}, error) + func (h HTTPApi) GetTradeStream(symbol string) (chan []byte, chan bool) + func (h HTTPApi) GetTransactionsV1(symbol string, opType []string, p GetTransactionsOptionalPayload) (*TransactionsV1, error) + func (h HTTPApi) GetTransactionsV2(symbol string, opType []string, p GetTransactionsOptionalPayload) (*TransactionsV2, error) + func (h HTTPApi) GetTransactionsV3(symbol string, opType []string, p GetTransactionsOptionalPayload) (*TransactionsV3, error) + func (h HTTPApi) GetTypes() (*Types, error) + func (h HTTPApi) GetUserAccounts() (*UserAccounts, error) + func (h HTTPApi) PlaceOrderV1(o *OrderSentTypeV1) error + func (h HTTPApi) PlaceOrderV2(o *OrderSentTypeV2) error + func (h HTTPApi) PlaceOrderV3(o *OrderSentTypeV3) error + func (h HTTPApi) ReplaceOrder(orderID string, r ReplaceOrderPayload) error + type IAuth interface + type JWTAuthMethod struct + ApplicationID string + ClientID string + JwtTTL int + SharedKey string + type OHLCQuote struct + Close int + High int + Low int + Open int + Timestamp int + type OHLCQuotes []OHLCQuote + func NewOHLCQuotes() *OHLCQuotes + type OHLCTrade struct + Close int + High int + Low int + Open int + Timestamp int + Volume string + type OHLCTrades []OHLCTrade + func NewOHLCTrades() *OHLCTrades + type OffsetLimitPayload struct + Limit int + Offset int + type OrderFill struct + Position int + Price string + Quantity string + Time string + type OrderParameters struct + Duration string + IfDoneParentID string + Instrument string + LimitPrice string + OcoGroup string + OrderType string + PartQuantity string + PlaceInterval string + PriceDistance string + Quantity string + Side string + StopPrice string + type OrderSentTypeV1 struct + Account string + ClientTag string + Duration string + IfDoneParentID string + Instrument string + OcoGroup string + OrderType string + Quantity string + Side string + type OrderSentTypeV2 struct + AccountID string + ClientTag string + Duration string + IfDoneParentID string + Instrument string + OcoGroup string + OrderType string + Quantity string + Side string + StopLoss string + TakeProfit string + type OrderSentTypeV3 struct + AccountID string + ClientTag string + Duration string + GttExpiration string + IfDoneParentID string + Instrument string + LimitPrice string + OcoGroup string + OrderType string + PartQuantity string + PlaceInterval string + PriceDistance string + Quantity string + Side string + StopLoss string + StopPrice string + TakeProfit string + type OrderState struct + Fills []OrderFill + LastUpdate string + Status string + type OrderV1 struct + ClientTag string + CurrentModificationID string + ExanteAccount string + OrderID string + OrderParameters OrderParameters + OrderState OrderState + PlaceTime string + Username string + func NewOrderV1() *OrderV1 + type OrderV2 struct + AccountID string + ClientTag string + CurrentModificationID string + ExanteAccount string + ID string + OrderID string + OrderParameters OrderParameters + OrderState OrderState + PlaceTime string + Username string + func NewOrderV2() *OrderV2 + type OrderV3 struct + AccountID string + ClientTag string + CurrentModificationID string + ExanteAccount string + OrderID string + OrderParameters OrderParameters + OrderState OrderState + PlaceTime string + Username string + func NewOrderV3() *OrderV3 + type OrdersV1 []OrderV1 + func NewOrdersV1() *OrdersV1 + type OrdersV2 []OrderV2 + func NewOrdersV2() *OrdersV2 + type OrdersV3 []OrderV3 + func NewOrdersV3() *OrdersV3 + type Period struct + Start string + Stop string + type Position struct + AveragePrice string + ConvertedPNL string + ConvertedValue string + Currency string + ID string + PNL string + Price string + Quantity string + SymbolType string + Value string + type QueryStringParams map[string]string + type Quote struct + Ask string + Bid string + SymbolID int + Timestamp int + func NewQuote() *Quote + type ReplaceOrderPayload struct + LimitPrice string + PriceDistance string + Quantity int + StopPrice string + type ResponseLimit struct + Limit int + type Schedule struct + Name string + OrderTypes string + Period []Period + func NewSchedule() *Schedule + type StartStopOptionalPayload struct + Start int + Stop int + type Summary struct + Account string + Currencies []CurrencyPos + Currency string + FreeMoney string + MarginUtilization string + MoneyUsedForMargin string + NetAssetValue string + Positions []Position + SessionDate string + Timestamp int + func NewSummary() *Summary + type SymbolOptionData struct + OptionIDGroup string + Right string + StrikePrice float64 + type SymbolOptionDataV2 struct + OptionIDGroup string + Right string + StrikePrice string + type SymbolOptionDataV3 struct + OptionIDGroup string + OptionRight string + StrikePrice string + type SymbolSpecification struct + ContractMultiplier string + Leverage string + LotSize string + PriceUnit string + Units string + func NewSymbolSpecification() *SymbolSpecification + type SymbolV1 struct + Country string + Currency string + Description string + Exchange string + Expiration float64 + Group string + ID string + Mpi float64 + Name string + Ticker string + Type string + func NewSymbolV1() *SymbolV1 + type SymbolV2 struct + Country string + Currency string + Description string + Exchange string + Expiration float64 + Group string + ID string + Mpi string + Name string + Ticker string + Type string + func NewSymbolV2() *SymbolV2 + type SymbolV3 struct + Country string + Currency string + Description string + Exchange string + Expiration float64 + Group string + MinPriceIncrement string + Name string + SymbolType string + Ticker string + UnderlyingID string + func NewSymbolV3() *SymbolV3 + type SymbolsV1 []SymbolV1 + func NewSymbolsV1() *SymbolsV1 + type SymbolsV2 []SymbolV2 + func NewSymbolsV2() *SymbolsV2 + type SymbolsV3 []SymbolV3 + func NewSymbolsV3() *SymbolsV3 + type TransactionV1 struct + AccountID string + Asset string + ID string + OperationType string + OrderID string + OrderPos int + Sum float64 + SymbolID string + UUID string + When int + type TransactionV2 TransactionV1 + type TransactionV3 struct + AccountID string + Asset string + ID string + OperationType string + OrderID string + OrderPos int + Sum float64 + SymbolID string + Timestamp int + UUID string + type TransactionsV1 []TransactionV1 + func NewTransactionsV1() *TransactionsV1 + type TransactionsV2 []TransactionV2 + func NewTransactionsV2() *TransactionsV2 + type TransactionsV3 []TransactionV3 + func NewTransactionsV3() *TransactionsV3 + type Type struct + ID string + type Types []Type + func NewTypes() *Types + type UserAccount struct + AccountID string + Status string + type UserAccounts []UserAccount + func NewUserAccounts() *UserAccounts + type Сurrencys struct + Currencies []Currency + func NewСurrencys() *Сurrencys