Documentation ¶
Overview ¶
Package models represents data returned by the API and in the private feed
Index ¶
- type Account
- type AccountInfo
- type ActivationCondition
- type Amount
- type CalendarDay
- type Country
- type Feed
- type Indicator
- type Instrument
- type InstrumentType
- type IntradayGraph
- type IntradayTick
- type Issuer
- type Ledger
- type LedgerInformation
- type LeverageFilter
- type List
- type LoggedInStatus
- type Login
- type Market
- type NewsItem
- type NewsPreview
- type NewsSource
- type OptionPair
- type OptionPairFilter
- type Order
- type OrderReply
- type OrderType
- type Position
- type PublicTrade
- type PublicTrades
- type RealtimeAccess
- type Sector
- type SystemStatus
- type TickSizeInterval
- type TicksizeTable
- type Tradable
- type TradableId
- type TradableInfo
- type Trade
- type UnderlyingInfo
- type Validity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInfo ¶
type AccountInfo struct { AccountCurrency string `json:"account_currency"` AccountCredit Amount `json:"account_credit"` AccountSum Amount `json:"account_sum"` Collateral Amount `json:"collateral"` CreditAccountSum Amount `json:"credit_account_sum"` ForwardSum Amount `json:"forward_sum"` FutureSum Amount `json:"future_sum"` UnrealizedFutureProfitLoss Amount `json:"unrealized_future_profit_loss"` FullMarketvalue Amount `json:"full_marketvalue"` Interest Amount `json:"interest"` IntradayCredit Amount `json:"intraday_credit"` LoanLimit Amount `json:"loan_limit"` OwnCapital Amount `json:"own_capital"` OwnCapitalMorning Amount `json:"own_capital_morning"` PawnValue Amount `json:"pawn_value"` TradingPower Amount `json:"trading_power"` }
type ActivationCondition ¶
type CalendarDay ¶
type Indicator ¶
type Indicator struct { Name string `json:"name"` Src string `json:"src"` Identifier string `json:"identifier"` Delayed int64 `json:"delayed"` OnlyEod bool `json:"only_eod"` Open string `json:"open"` Close string `json:"close"` Country string `json:"country"` Type string `json:"type"` Region string `json:"region"` InstrumentId int64 `json:"instrument_id"` }
type Instrument ¶
type Instrument struct { InstrumentId int64 `json:"instrument_id"` Tradables []Tradable `json:"tradables"` Currency string `json:"currency"` InstrumentGroupType string `json:"instrument_group_type"` InstrumentType string `json:"instrument_type"` Multiplier float64 `json:"multiplier"` Symbol string `json:"symbol"` IsinCode string `json:"isin_code"` MarketView string `json:"market_view"` StrikePrice float64 `json:"strike_price"` NumberOfSecurities float64 `json:"number_of_securities"` ProspectusUrl string `json:"prospectus_url"` ExpirationDate string `json:"expiration_date"` Name string `json:"name"` Sector string `json:"sector"` SectorGroup string `json:"sector_group"` Underlyings []UnderlyingInfo `json:"underlyings"` }
type InstrumentType ¶
type IntradayGraph ¶
type IntradayGraph struct { TradableId Ticks []IntradayTick `json:"ticks"` }
type IntradayTick ¶
type LedgerInformation ¶
type LeverageFilter ¶
type LeverageFilter struct { Issuers []Issuer `json:"issuers"` MarketView []string `json:"market_view"` ExpirationDates []string `json:"expiration_dates"` InstrumentTypes []string `json:"instrument_types"` InstrumentGroupTypes []string `json:"instrument_group_types"` Currencies []string `json:"currencies"` NoOfInstruments int64 `json:"no_of_instruments"` }
type LoggedInStatus ¶
type LoggedInStatus struct {
LoggedIn bool `json:"logged_in"`
}
type NewsPreview ¶
type NewsSource ¶
type OptionPair ¶
type OptionPair struct { StrikePrice float64 `json:"strike_price"` ExpirationDate string `json:"expiration_date"` Call Instrument `json:"call"` Put Instrument `json:"put"` }
type OptionPairFilter ¶
type OptionPairFilter struct {
ExpirationDates []string `json:"expiration_dates"`
}
type Order ¶
type Order struct { Accno int64 `json:"accno"` OrderId int64 `json:"order_id"` Price Amount `json:"price"` Volume float64 `json:"volume"` Tradable TradableId `json:"tradable"` OpenVolume float64 `json:"open_volume"` TradedVolume float64 `json:"traded_volume"` Side string `json:"side"` Modified int64 `json:"modified"` Reference string `json:"reference"` ActivationCondition ActivationCondition `json:"activation_condition"` PriceCondition string `json:"price_condition"` VolumeCondition string `json:"volume_condition"` Validity Validity `json:"validity"` ActionState string `json:"action_state"` OrderState string `json:"order_state"` }
type OrderReply ¶
type Position ¶
type Position struct { Accno int64 `json:"accno"` Instrument Instrument `json:"instrument"` Qty float64 `json:"qty"` PawnPercent float64 `json:"pawn_percent"` MarketValueAcc Amount `json:"market_value_acc"` MarketValue Amount `json:"market_value"` AcqPriceAcc Amount `json:"acq_price_acc"` AcqPrice Amount `json:"acq_price"` MorningPrice Amount `json:"morning_price"` }
type PublicTrade ¶
type PublicTrades ¶
type PublicTrades struct { TradableId Trades []PublicTrade `json:"trades"` }
type RealtimeAccess ¶
type SystemStatus ¶
type TickSizeInterval ¶
type TicksizeTable ¶
type TicksizeTable struct { TickSizeId int64 `json:"tick_size_id"` Ticks []TickSizeInterval `json:"ticks"` }
type Tradable ¶
type Tradable struct { TradableId TickSizeId int64 `json:"tick_size_id"` LotSize float64 `json:"lot_size"` DisplayOrder int64 `json:"display_order"` }
type TradableId ¶
type TradableInfo ¶
type TradableInfo struct { MarketId int64 `json:"market_id"` Iceberg bool `json:"iceberg"` Calendar []CalendarDay `json:"calendar"` OrderTypes []OrderType `json:"order_types"` }
type Trade ¶
type Trade struct { Accno int64 `json:"accno"` OrderId int64 `json:"order_id"` TradeId string `json:"trade_id"` Tradable TradableId `json:"tradable"` Price Amount `json:"price"` Volume float64 `json:"volume"` Side string `json:"side"` Counterparty string `json:"counterparty"` Tradetime int64 `json:"tradetime"` }
type UnderlyingInfo ¶
Click to show internal directories.
Click to hide internal directories.