Documentation
¶
Index ¶
- Constants
- Variables
- type Auth
- type BasicAuthMethod
- type CancelOrderPayload
- type ChangeV1
- type ChangeV2
- type ChangeV3
- type ChangesV1
- type ChangesV2
- type ChangesV3
- type Currency
- type CurrencyPos
- type DatetimePayload
- type DatetimeRangePayload
- type Exchange
- type Exchanges
- type GetAccountSummaryPayload
- type GetActiveOrderPayload
- type GetOHLCOptionalPayload
- type GetOrdersPayload
- type GetTicksByQuotesPayload
- type GetTicksByTradesPayload
- type GetTransactionsOptionalPayload
- type Group
- type Groups
- type HTTPApi
- func (h HTTPApi) CancelOrder(orderID string, c CancelOrderPayload) error
- func (h HTTPApi) GetAccountSummaryV3(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(symbol string) (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
- type JWTAuthMethod
- type OHLCQuote
- type OHLCQuotes
- type OHLCTrade
- type OHLCTrades
- type OffsetLimitPayload
- type OrderFill
- type OrderParameters
- type OrderSentTypeV1
- type OrderSentTypeV2
- type OrderSentTypeV3
- type OrderState
- type OrderV1
- type OrderV2
- type OrderV3
- type OrdersV1
- type OrdersV2
- type OrdersV3
- type Period
- type PositionV3
- type QueryStringParams
- type Quote
- type ReplaceOrderPayload
- type ResponseLimit
- type Schedule
- type StartStopOptionalPayload
- type SummaryV3
- type SymboIdentifiers
- type SymbolOptionData
- type SymbolOptionDataV2
- type SymbolOptionDataV3
- type SymbolSpecification
- type SymbolV1
- type SymbolV2
- type SymbolV3
- type SymbolsV1
- type SymbolsV2
- type SymbolsV3
- type TransactionV1
- type TransactionV2
- type TransactionV3
- type TransactionsV1
- type TransactionsV2
- type TransactionsV3
- type Type
- type Types
- type UserAccount
- type UserAccounts
- type Сurrencys
Constants ¶
const ( // JWTDefaultTTL default lieftime of jwt token JWTDefaultTTL int = 30 // APIv1 api version APIv1 string = "1.0" // APIv2 api version APIv2 string = "2.0" // APIv3 api version APIv3 string = "3.0" // BasicAuth type BasicAuth string = "BasicAuth" // JWTAuth type JWTAuth string = "JWTAuth" // MDAPICategory md api url prefix MDAPICategory string = "md" // TRADEAPICategory traders api url prefix TradeAPICategory string = "trade" // CurrentAPIVersion default api version CurrentAPIVersion string = APIv3 )
Variables ¶
var APIVersions = [3]string{APIv1, APIv2, APIv3}
APIVersions list of available api verisons
var Scopes = []string{
"symbols",
"feed",
"summary",
"accounts",
"change",
"orders",
"ohlc",
"crossrates",
"transactions",
}
Scopes is JWT Auth scopes
Functions ¶
This section is empty.
Types ¶
type CancelOrderPayload ¶
type CancelOrderPayload struct {
Action string `json:"action"`
}
CancelOrderPayload method optional payload
type ChangeV1 ¶
type ChangeV1 struct { BasePrice string `json:"basePrice"` DailyChange string `json:"dailyChange"` SymbolID string `json:"symbolId"` }
ChangeV1 model
type ChangeV3 ¶
type ChangeV3 struct { LastSessionClosePrice string `json:"lastSessionClosePrice"` DailyChange string `json:"dailyChange"` SymbolID string `json:"symbolId"` }
ChangeV3 model
type CurrencyPos ¶
type CurrencyPos struct { Code string `json:"code"` Value string `json:"value"` ConvertedValue string `json:"convertedValue"` }
CurrencyPos model
type DatetimePayload ¶
type DatetimePayload struct {
Datetime string `json:"datetime"`
}
DatetimePayload datetime optional field for requests
type DatetimeRangePayload ¶
type DatetimeRangePayload struct{ From, To int }
DatetimeRangePayload optional query params for requsts
type Exchange ¶
type Exchange struct { ID string `json:"id"` Name string `json:"name"` Country string `json:"country"` }
Exchange model
type GetAccountSummaryPayload ¶
type GetAccountSummaryPayload struct { DatetimePayload Currency string }
GetAccountSummaryPayload input params for GetAccountSummary method
type GetActiveOrderPayload ¶
type GetActiveOrderPayload struct {
Account, SymbolID string
Limit ResponseLimit
}
GetActiveOrderPayload optional input params for GetActiveOrder method
type GetOHLCOptionalPayload ¶
type GetOHLCOptionalPayload struct { ResponseLimit StartStopOptionalPayload }
GetOHLCOptionalPayload optional params for ohcl methods
type GetOrdersPayload ¶
type GetOrdersPayload struct { Account string Limit ResponseLimit DatetimeRangePayload }
GetOrdersPayload input params for GetOrders method
type GetTicksByQuotesPayload ¶
type GetTicksByQuotesPayload GetOHLCOptionalPayload
GetTicksByQuotesPayload method optional payload
type GetTicksByTradesPayload ¶
type GetTicksByTradesPayload GetTicksByQuotesPayload
GetTicksByTradesPayload method optional payload
type GetTransactionsOptionalPayload ¶
type GetTransactionsOptionalPayload struct { OrderPos int Account, UUID, Asset, OrderID, Order string OffsetLimit OffsetLimitPayload DatetimeRangePayload }
GetTransactionsOptionalPayload optional params for GetTransactions endpoint function
type Group ¶
type Group struct { Group string `json:"group"` Name string `json:"name"` Exchange string `json:"exchange"` Types []string `json:"types"` }
Group model
type HTTPApi ¶
type HTTPApi struct { Auth Auth // contains filtered or unexported fields }
HTTPApi struct provide communication with xnt services
func NewAPI ¶
func NewAPI( baseAPIURL, version, ApplicationID, ClientID, SharedKey string, JwtTTL int, BasicAuthUsername, BasicAuthPassword string) HTTPApi
NewAPI constructor for lib
func (HTTPApi) CancelOrder ¶
func (h HTTPApi) CancelOrder(orderID string, c CancelOrderPayload) error
CancelOrder cancel trading order
func (HTTPApi) GetAccountSummaryV3 ¶
func (h HTTPApi) GetAccountSummaryV3(account, currency string, p GetAccountSummaryPayload) (interface{}, error)
GetAccountSummary return the summary for the specified account
func (HTTPApi) GetActiveOrdersV1 ¶
GetActiveOrdersV1 return the list of active trading orders
func (HTTPApi) GetActiveOrdersV2 ¶
GetActiveOrdersV2 return the list of active trading orders
func (HTTPApi) GetActiveOrdersV3 ¶
GetActiveOrdersV3 return the list of active trading orders
func (HTTPApi) GetChangesV1 ¶
GetChangesV1 return the list of daily changes for all or requested instruments
func (HTTPApi) GetChangesV2 ¶
GetChangesV2 return the list of daily changes for all or requested instruments
func (HTTPApi) GetChangesV3 ¶
GetChangesV3 return the list of daily changes for all or requested instruments
func (HTTPApi) GetCurrencies ¶
GetCurrencies return the list of available currencies
func (HTTPApi) GetExchanges ¶
GetExchanges return list of exchanges
func (HTTPApi) GetExecOrdersStream ¶
GetExecOrdersStream return the life quote stream for the specified financial instruments
func (HTTPApi) GetLastQuote ¶
GetLastQuote return the last quote for the specified financial instrument
func (HTTPApi) GetNearestV1 ¶
GetNearestV1 return financial instrument which has the nearest expiration in the group
func (HTTPApi) GetNearestV2 ¶
GetNearestV2 return financial instrument which has the nearest expiration in the group
func (HTTPApi) GetNearestV3 ¶
GetNearestV3 return financial instrument which has the nearest expiration in the group
func (HTTPApi) GetOHLCQuotes ¶
func (h HTTPApi) GetOHLCQuotes(symbol string, duration int, g GetOHLCOptionalPayload) (*OHLCQuotes, error)
GetOHLCQuotes return the list of OHLC candles for the specified financial instrument and duration
func (HTTPApi) GetOHLCTrades ¶
func (h HTTPApi) GetOHLCTrades(symbol string, duration int, g GetOHLCOptionalPayload) (*OHLCTrades, error)
GetOHLCTrades return the list of OHLC candles for the specified financial instrument and duration
func (HTTPApi) GetOrderV1 ¶
GetOrderV1 return the order with specified identifier
func (HTTPApi) GetOrderV2 ¶
GetOrderV2 return the order with specified identifier
func (HTTPApi) GetOrderV3 ¶
GetOrderV3 return the order with specified identifier
func (HTTPApi) GetOrdersStream ¶
GetOrdersStream return the orders stream for the specified financial instruments
func (HTTPApi) GetOrdersV1 ¶
func (h HTTPApi) GetOrdersV1(g GetOrdersPayload) (*OrdersV1, error)
GetOrdersV1 return the list of historical orders
func (HTTPApi) GetOrdersV2 ¶
func (h HTTPApi) GetOrdersV2(g GetOrdersPayload) (*OrdersV2, error)
GetOrdersV2 return the list of historical orders
func (HTTPApi) GetOrdersV3 ¶
func (h HTTPApi) GetOrdersV3(g GetOrdersPayload) (*OrdersV3, error)
GetOrdersV3 return the list of historical orders
func (HTTPApi) GetQuoteStream ¶
GetQuoteStream return the life quote stream for the specified financial instruments
func (HTTPApi) GetSymbolSpec ¶
func (h HTTPApi) GetSymbolSpec(symbol string) (*SymbolSpecification, error)
GetSymbolSpec return additional parameters for requested instrument
func (HTTPApi) GetSymbolV1 ¶
GetSymbolV1 return instrument available for authorized user
func (HTTPApi) GetSymbolV2 ¶
GetSymbolV2 return instrument available for authorized user
func (HTTPApi) GetSymbolV3 ¶
GetSymbolV3 return instrument available for authorized user
func (HTTPApi) GetSymbolsByExchV1 ¶
GetSymbolsByExchV1 return the requested exchange financial instruments
func (HTTPApi) GetSymbolsByExchV2 ¶
GetSymbolsByExchV2 return the requested exchange financial instruments
func (HTTPApi) GetSymbolsByExchV3 ¶
GetSymbolsByExchV3 return the requested exchange financial instruments
func (HTTPApi) GetSymbolsByGroupV1 ¶
GetSymbolsByGroupV1 return financial instruments which belong to specified group
func (HTTPApi) GetSymbolsByGroupV2 ¶
GetSymbolsByGroupV2 return financial instruments which belong to specified group
func (HTTPApi) GetSymbolsByGroupV3 ¶
GetSymbolsByGroupV3 return financial instruments which belong to specified group
func (HTTPApi) GetSymbolsByTypeV1 ¶
GetSymbolsByTypeV1 return financial instruments of the requested type symbolType: instument type like STOCK, FUTURE, BOND, CURRENCY etc
func (HTTPApi) GetSymbolsByTypeV2 ¶
GetSymbolsByTypeV2 return financial instruments of the requested type symbolType: instument types like STOCK, FUTURE, BOND, CURRENCY etc
func (HTTPApi) GetSymbolsByTypeV3 ¶
GetSymbolsByTypeV3 return financial instruments of the requested type symbolType: instument types like STOCK, FUTURE, BOND, CURRENCY etc
func (HTTPApi) GetSymbolsV1 ¶
GetSymbolsV1 return list of instruments available for authorized user
func (HTTPApi) GetSymbolsV2 ¶
GetSymbolsV2 return list of instruments available for authorized user
func (HTTPApi) GetSymbolsV3 ¶
GetSymbolsV3 return list of instruments available for authorized user
func (HTTPApi) GetSymbolschedule ¶
GetSymbolschedule return financial schedule for requested instrument
func (HTTPApi) GetTicksByQuotes ¶
func (h HTTPApi) GetTicksByQuotes( symbol string, g GetTicksByQuotesPayload) (interface{}, error)
GetTicksByQuotes return the list of ticks for the specified financial instrument aggregated by quotes data type
func (HTTPApi) GetTicksByTrades ¶
func (h HTTPApi) GetTicksByTrades( symbol string, g GetTicksByTradesPayload) (interface{}, error)
GetTicksByTrades return the list of ticks for the specified financial instrument aggregated by trades data type
func (HTTPApi) GetTradeStream ¶
GetTradeStream return the trades stream for the specified financial instruments
func (HTTPApi) GetTransactionsV1 ¶
func (h HTTPApi) GetTransactionsV1(symbol string, opType []string, p GetTransactionsOptionalPayload) (*TransactionsV1, error)
GetTransactionsV1 return the list of transactions with the specified filter
func (HTTPApi) GetTransactionsV2 ¶
func (h HTTPApi) GetTransactionsV2(symbol string, opType []string, p GetTransactionsOptionalPayload) (*TransactionsV2, error)
GetTransactionsV2 return the list of transactions with the specified filter
func (HTTPApi) GetTransactionsV3 ¶
func (h HTTPApi) GetTransactionsV3(symbol string, opType []string, p GetTransactionsOptionalPayload) (*TransactionsV3, error)
GetTransactionsV3 return the list of transactions with the specified filter
func (HTTPApi) GetUserAccounts ¶
func (h HTTPApi) GetUserAccounts() (*UserAccounts, error)
GetUserAccounts return the list of user accounts and their statuses
func (HTTPApi) PlaceOrderV1 ¶
func (h HTTPApi) PlaceOrderV1(o *OrderSentTypeV1) error
PlaceOrderV1 place new trading OrderV1
func (HTTPApi) PlaceOrderV2 ¶
func (h HTTPApi) PlaceOrderV2(o *OrderSentTypeV2) error
PlaceOrderV2 place new trading OrderV2
func (HTTPApi) PlaceOrderV3 ¶
func (h HTTPApi) PlaceOrderV3(o *OrderSentTypeV3) error
PlaceOrderV3 place new trading OrderV3
func (HTTPApi) ReplaceOrder ¶
func (h HTTPApi) ReplaceOrder(orderID string, r ReplaceOrderPayload) error
ReplaceOrder replace trading order
type OHLCQuote ¶
type OHLCQuote struct { Open int `json:"open_"` Low int `json:"low"` High int `json:"high"` Close int `json:"close"` Timestamp int `json:"timestamp"` }
OHLCQuote model
type OHLCTrade ¶
type OHLCTrade struct { Open int `json:"open_"` Low int `json:"low"` High int `json:"high"` Close int `json:"close"` Timestamp int `json:"timestamp"` Volume string `json:"volume"` }
OHLCTrade model
type OffsetLimitPayload ¶
type OffsetLimitPayload struct{ Offset, Limit int }
OffsetLimitPayload offset and limit optional params
type OrderFill ¶
type OrderFill struct { Quantity string `json:"quantity"` Price string `json:"price"` Time string `json:"timestamp"` Position int `json:"position"` }
OrderFill model
type OrderParameters ¶
type OrderParameters struct { Side string `json:"side"` Duration string `json:"duration"` Quantity string `json:"quantity"` Instrument string `json:"instrument"` OrderType string `json:"orderType"` OcoGroup string `json:"ocoGroup"` IfDoneParentID string `json:"ifDoneParentId"` LimitPrice string `json:"limitPrice"` StopPrice string `json:"stopPrice"` PriceDistance string `json:"priceDistance"` PartQuantity string `json:"partQuantity"` PlaceInterval string `json:"placeInterval"` }
OrderParameters model
type OrderSentTypeV1 ¶
type OrderSentTypeV1 struct { Account string `json:"account"` Instrument string `json:"instrument"` Side string `json:"side"` Quantity string `json:"quantity"` Duration string `json:"duration"` ClientTag string `json:"clientTag"` OcoGroup string `json:"ocoGroup"` IfDoneParentID string `json:"ifDoneParentId"` OrderType string `json:"orderType"` }
OrderSentTypeV1 model
type OrderSentTypeV2 ¶
type OrderSentTypeV2 struct { AccountID string `json:"accountId"` Instrument string `json:"instrument"` Side string `json:"side"` Quantity string `json:"quantity"` Duration string `json:"duration"` ClientTag string `json:"clientTag"` OcoGroup string `json:"ocoGroup"` IfDoneParentID string `json:"ifDoneParentId"` OrderType string `json:"orderType"` TakeProfit string `json:"takeProfit"` StopLoss string `json:"stopLoss"` }
OrderSentTypeV2 model
type OrderSentTypeV3 ¶
type OrderSentTypeV3 struct { AccountID string `json:"accountId"` Instrument string `json:"instrument"` Side string `json:"side"` Quantity string `json:"quantity"` Duration string `json:"duration"` ClientTag string `json:"clientTag,omitempty"` OcoGroup string `json:"ocoGroup,omitempty"` IfDoneParentID string `json:"ifDoneParentId,omitempty"` OrderType string `json:"orderType"` TakeProfit string `json:"takeProfit,omitempty"` StopLoss string `json:"stopLoss,omitempty"` SymbolID string `json:"symbolId"` }
OrderSentTypeV3 model
type OrderState ¶
type OrderState struct { Fills []OrderFill `json:"fills"` Status string `json:"status"` LastUpdate string `json:"lastUpdate"` }
OrderState model
type OrderV1 ¶
type OrderV1 struct { OrderState OrderState `json:"orderState"` OrderParameters OrderParameters `json:"orderParameters"` PlaceTime string `json:"placeTime"` OrderID string `json:"orderId"` ClientTag string `json:"clientTag"` CurrentModificationID string `json:"currentModificationId"` ExanteAccount string `json:"exanteAccount"` Username string `json:"username"` }
OrderV1 model
type OrderV2 ¶
type OrderV2 struct { OrderState OrderState `json:"orderState"` OrderParameters OrderParameters `json:"orderParameters"` OrderID string `json:"orderId"` PlaceTime string `json:"placeTime"` AccountID string `json:"accountId"` ClientTag string `json:"clientTag"` CurrentModificationID string `json:"currentModificationId"` ExanteAccount string `json:"exanteAccount"` Username string `json:"username"` ID string `json:"id"` }
OrderV2 model
type OrderV3 ¶
type OrderV3 struct { OrderState OrderState `json:"orderState"` OrderParameters OrderParameters `json:"orderParameters"` OrderID string `json:"orderId"` PlaceTime string `json:"placeTime"` AccountID string `json:"accountId"` ClientTag string `json:"clientTag"` CurrentModificationID string `json:"currentModificationId"` ExanteAccount string `json:"exanteAccount"` Username string `json:"username"` }
OrderV3 model
type PositionV3 ¶
type PositionV3 struct { SymbolId string `json:"symbolId"` SymbolType string `json:"symbolType"` Currency string `json:"currency"` Price string `json:"price"` AveragePrice string `json:"averagePrice"` Quantity string `json:"quantity"` Value string `json:"value"` ConvertedValue string `json:"convertedValue"` PNL string `json:"pnl"` ConvertedPNL string `json:"convertedPnl"` AccruedInterest string `json:"accruedInterest"` }
PositionV3 model
type Quote ¶
type Quote struct { Timestamp int `json:"timestamp"` SymbolID int `json:"symbolId"` Bid string `json:"bid"` Ask string `json:"ask"` }
Quote model
type ReplaceOrderPayload ¶
type ReplaceOrderPayload struct { CancelOrderPayload Quantity int `json:"quantity"` LimitPrice string `json:"limitPrice"` StopPrice string `json:"stopPrice"` PriceDistance string `json:"priceDistance"` }
ReplaceOrderPayload method optional payload
type Schedule ¶
type Schedule struct { Period []Period Name string `json:"name"` OrderTypes string `json:"orderTypes"` }
Schedule model
type StartStopOptionalPayload ¶
type StartStopOptionalPayload struct{ Start, Stop int }
StartStopOptionalPayload optional params
type SummaryV3 ¶
type SummaryV3 struct { Currencies []CurrencyPos `json:"currencies"` Positions []PositionV3 `json:"positions"` AccountId string `json:"accountId"` SessionDate string `json:"sessionDate"` FreeMoney string `json:"freeMoney"` Timestamp int64 `json:"timestamp"` NetAssetValue string `json:"netAssetValue"` MarginUtilization string `json:"marginUtilization"` MoneyUsedForMargin string `json:"moneyUsedForMargin"` Currency string `json:"currency"` }
Summary model
type SymboIdentifiers ¶
type SymboIdentifiers struct { ISIN string `json:"ISIN"` FIGI string `json:"FIGI"` CUSIP string `json:"CUSIP"` RIC string `json:"RIC"` SEDOL string `json:"SEDOL"` }
SymbolIdentifiersDataV3 params for symbol (api v3)
type SymbolOptionData ¶
type SymbolOptionData struct { OptionIDGroup string `json:"optionGroupId"` Right string `json:"right"` StrikePrice float64 `json:"strikePrice"` }
SymbolOptionData optionals params for symbol
type SymbolOptionDataV2 ¶
type SymbolOptionDataV2 struct { OptionIDGroup string `json:"optionGroupId"` Right string `json:"right"` StrikePrice string `json:"strikePrice"` }
SymbolOptionDataV2 ...
type SymbolOptionDataV3 ¶
type SymbolOptionDataV3 struct { OptionIDGroup string `json:"optionGroupId"` OptionRight string `json:"optionRight"` StrikePrice string `json:"strikePrice"` }
SymbolOptionDataV3 optionals params for symbol (api v3)
type SymbolSpecification ¶
type SymbolSpecification struct { Leverage string `json:"leverage"` ContractMultiplier string `json:"contractMultiplier"` PriceUnit string `json:"priceUnit"` Units string `json:"unitd"` LotSize string `json:"lotSize"` }
SymbolSpecification model
func NewSymbolSpecification ¶
func NewSymbolSpecification() *SymbolSpecification
NewSymbolSpecification constructor
type SymbolV1 ¶
type SymbolV1 struct { SymbolOptionData `json:"optionData"` Name string `json:"name"` Description string `json:"description"` Country string `json:"country"` Exchange string `json:"exchange"` ID string `json:"id"` Currency string `json:"currency"` Mpi float64 `json:"mpi"` Type string `json:"type"` Ticker string `json:"ticker"` Expiration float64 `json:"expiration"` Group string `json:"group"` }
SymbolV1 model
type SymbolV2 ¶
type SymbolV2 struct { SymbolOptionDataV2 `json:"optionData"` Name string `json:"name"` Description string `json:"description"` Country string `json:"country"` Exchange string `json:"exchange"` ID string `json:"id"` Currency string `json:"currency"` Mpi string `json:"mpi"` Type string `json:"type"` Ticker string `json:"ticker"` Expiration int64 `json:"expiration"` Group string `json:"group"` }
SymbolV2 model
type SymbolV3 ¶
type SymbolV3 struct { SymbolOptionDataV3 `json:"optionData"` SymboIdentifiers `json:"identifiers"` SymbolId string `json:"symbolId"` Name string `json:"name"` Description string `json:"description"` Country string `json:"country"` Exchange string `json:"exchange"` MinPriceIncrement string `json:"minPriceIncrement"` Currency string `json:"currency"` SymbolType string `json:"symbolType"` Ticker string `json:"ticker"` Expiration int64 `json:"expiration"` Group string `json:"group"` UnderlyingSymbolId string `json:"underlyingSymbolId"` }
SymbolV3 model
type TransactionV1 ¶
type TransactionV1 struct { OperationType string `json:"operationType"` ID string `json:"id"` Asset string `json:"asset"` When int `json:"when"` Sum float64 `json:"sum"` SymbolID string `json:"symbolId"` AccountID string `json:"accountId"` OrderID string `json:"orderId"` OrderPos int `json:"orderPos"` UUID string `json:"uuid"` }
TransactionV1 model
type TransactionV3 ¶
type TransactionV3 struct { OperationType string `json:"operationType"` ID string `json:"id"` Asset string `json:"asset"` SymbolID string `json:"symbolId"` AccountID string `json:"accountId"` Timestamp int `json:"timestamp"` Sum float64 `json:"sum"` OrderID string `json:"orderId"` OrderPos int `json:"orderPos"` UUID string `json:"uuid"` }
TransactionV3 model
type UserAccount ¶
UserAccount model