Documentation ¶
Overview ¶
Contains generated structs from https://api.test.nordnet.se/next/2/api-docs/swagger
Index ¶
- Constants
- type Account
- type AccountInfo
- type ActivationCondition
- type Amount
- type CalendarDay
- type Country
- type Date
- type ErrorResponse
- 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 Status
- type TicksizeInterval
- type TicksizeTable
- type Tradable
- type TradableId
- type TradableInfo
- type Trade
- type UnderlyingInfo
- type Validity
Constants ¶
View Source
const DateFormat = "2006-01-02"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInfo ¶
type AccountInfo struct { AccountCurrency string `json:"account_currency,omitempty"` AccountCredit Amount `json:"account_credit,omitempty"` AccountSum Amount `json:"account_sum,omitempty"` Collateral Amount `json:"collateral,omitempty"` CreditAccountSum Amount `json:"credit_account_sum,omitempty"` ForwardSum Amount `json:"forward_sum,omitempty"` FutureSum Amount `json:"future_sum,omitempty"` UnrealizedFutureProfitLoss Amount `json:"unrealized_future_profit_loss,omitempty"` FullMarketvalue Amount `json:"full_marketvalue,omitempty"` Interest Amount `json:"interest,omitempty"` IntradayCredit Amount `json:"intraday_credit,omitempty"` LoanLimit Amount `json:"loan_limit,omitempty"` OwnCapital Amount `json:"own_capital,omitempty"` OwnCapitalMorning Amount `json:"own_capital_morning,omitempty"` PawnValue Amount `json:"pawn_value,omitempty"` TradingPower Amount `json:"trading_power,omitempty"` }
type ActivationCondition ¶
type CalendarDay ¶
type Date ¶
Since swagger generates 'Date', we need to define it, and thus do not need to modify generated files
func (Date) MarshalJSON ¶
MarshalJSON implements json.Marshaler interface.
func (*Date) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler inferface.
type ErrorResponse ¶
type Indicator ¶
type Indicator struct { Name string `json:"name,omitempty"` Src string `json:"src,omitempty"` Identifier string `json:"identifier,omitempty"` Delayed int64 `json:"delayed,omitempty"` OnlyEod bool `json:"only_eod,omitempty"` Open string `json:"open,omitempty"` Close string `json:"close,omitempty"` Country string `json:"country,omitempty"` Typ string `json:"type,omitempty"` Region string `json:"region,omitempty"` InstrumentId int64 `json:"instrument_id,omitempty"` }
type Instrument ¶
type Instrument struct { InstrumentId int64 `json:"instrument_id,omitempty"` Tradables []Tradable `json:"tradables,omitempty"` Currency string `json:"currency,omitempty"` InstrumentGroupType string `json:"instrument_group_type,omitempty"` InstrumentType string `json:"instrument_type,omitempty"` Multiplier float64 `json:"multiplier,omitempty"` Symbol string `json:"symbol,omitempty"` IsinCode string `json:"isin_code,omitempty"` MarketView string `json:"market_view,omitempty"` StrikePrice float64 `json:"strike_price,omitempty"` PawnPercentage float64 `json:"pawn_percentage,omitempty"` NumberOfSecurities float64 `json:"number_of_securities,omitempty"` ProspectusUrl string `json:"prospectus_url,omitempty"` ExpirationDate Date `json:"expiration_date,omitempty"` Name string `json:"name,omitempty"` Sector string `json:"sector,omitempty"` SectorGroup string `json:"sector_group,omitempty"` Underlyings []UnderlyingInfo `json:"underlyings,omitempty"` }
type InstrumentType ¶
type IntradayGraph ¶
type IntradayGraph struct { MarketId int64 `json:"market_id,omitempty"` Identifier string `json:"identifier,omitempty"` Ticks []IntradayTick `json:"ticks,omitempty"` }
type IntradayTick ¶
type Ledger ¶
type Ledger struct { Currency string `json:"currency,omitempty"` AccountSum Amount `json:"account_sum,omitempty"` AccountSumAcc Amount `json:"account_sum_acc,omitempty"` AccIntDeb Amount `json:"acc_int_deb,omitempty"` AccIntCred Amount `json:"acc_int_cred,omitempty"` ExchangeRate Amount `json:"exchange_rate,omitempty"` }
type LedgerInformation ¶
type LeverageFilter ¶
type LeverageFilter struct { Issuers []Issuer `json:"issuers,omitempty"` MarketView []string `json:"market_view,omitempty"` ExpirationDates []string `json:"expiration_dates,omitempty"` InstrumentTypes []string `json:"instrument_types,omitempty"` InstrumentGroupTypes []string `json:"instrument_group_types,omitempty"` Currencies []string `json:"currencies,omitempty"` NoOfInstruments int64 `json:"no_of_instruments,omitempty"` }
type LoggedInStatus ¶
type LoggedInStatus struct {
LoggedIn bool `json:"logged_in,omitempty"`
}
type NewsItem ¶
type NewsItem struct { NewsId int64 `json:"news_id,omitempty"` SourceId int64 `json:"source_id,omitempty"` Headline string `json:"headline,omitempty"` Body string `json:"body,omitempty"` Instruments []int64 `json:"instruments,omitempty"` Lang string `json:"lang,omitempty"` Typ string `json:"type,omitempty"` Timestamp int64 `json:"timestamp,omitempty"` }
type NewsPreview ¶
type NewsPreview struct { NewsId int64 `json:"news_id,omitempty"` SourceId int64 `json:"source_id,omitempty"` Headline string `json:"headline,omitempty"` Instruments []int64 `json:"instruments,omitempty"` Lang string `json:"lang,omitempty"` Typ string `json:"type,omitempty"` Timestamp int64 `json:"timestamp,omitempty"` }
type NewsSource ¶
type OptionPair ¶
type OptionPair struct { StrikePrice float64 `json:"strike_price,omitempty"` ExpirationDate Date `json:"expiration_date,omitempty"` Call Instrument `json:"call,omitempty"` Put Instrument `json:"put,omitempty"` }
type OptionPairFilter ¶
type OptionPairFilter struct {
ExpirationDates []string `json:"expiration_dates,omitempty"`
}
type Order ¶
type Order struct { Accno int64 `json:"accno,omitempty"` OrderId int64 `json:"order_id,omitempty"` Price Amount `json:"price,omitempty"` Volume float64 `json:"volume,omitempty"` Tradable TradableId `json:"tradable,omitempty"` OpenVolume float64 `json:"open_volume,omitempty"` TradedVolume float64 `json:"traded_volume,omitempty"` Side string `json:"side,omitempty"` Modified int64 `json:"modified,omitempty"` Reference string `json:"reference,omitempty"` ActivationCondition ActivationCondition `json:"activation_condition,omitempty"` PriceCondition string `json:"price_condition,omitempty"` VolumeCondition string `json:"volume_condition,omitempty"` Validity Validity `json:"validity,omitempty"` ActionState string `json:"action_state,omitempty"` OrderType string `json:"order_type,omitempty"` OrderState string `json:"order_state,omitempty"` }
type OrderReply ¶
type Position ¶
type Position struct { Accno int64 `json:"accno,omitempty"` Instrument Instrument `json:"instrument,omitempty"` Qty float32 `json:"qty,omitempty"` PawnPercent int64 `json:"pawn_percent,omitempty"` MarketValueAcc Amount `json:"market_value_acc,omitempty"` MarketValue Amount `json:"market_value,omitempty"` AcqPrice Amount `json:"acq_price,omitempty"` AcqPriceAcc Amount `json:"acq_price_acc,omitempty"` MorningPrice Amount `json:"morning_price,omitempty"` }
type PublicTrade ¶
type PublicTrade struct { BrokerBuying string `json:"broker_buying,omitempty"` BrokerSelling string `json:"broker_selling,omitempty"` Volume int64 `json:"volume,omitempty"` Price float64 `json:"price,omitempty"` TradeId string `json:"trade_id,omitempty"` TradeType string `json:"trade_type,omitempty"` }
type PublicTrades ¶
type PublicTrades struct { MarketId int64 `json:"market_id,omitempty"` Identifier string `json:"identifier,omitempty"` Trades []PublicTrade `json:"trades,omitempty"` }
type RealtimeAccess ¶
type TicksizeInterval ¶
type TicksizeTable ¶
type TicksizeTable struct { TickSizeId int64 `json:"tick_size_id,omitempty"` Ticks []TicksizeInterval `json:"ticks,omitempty"` }
type TradableId ¶
type TradableInfo ¶
type TradableInfo struct { MarketId int64 `json:"market_id,omitempty"` Identifier string `json:"identifier,omitempty"` Iceberg bool `json:"iceberg,omitempty"` Calendar []CalendarDay `json:"calendar,omitempty"` OrderTypes []OrderType `json:"order_types,omitempty"` }
type Trade ¶
type Trade struct { Accno int64 `json:"accno,omitempty"` OrderId int64 `json:"order_id,omitempty"` TradeId string `json:"trade_id,omitempty"` Tradable TradableId `json:"tradable,omitempty"` Price Amount `json:"price,omitempty"` Volume float64 `json:"volume,omitempty"` Side string `json:"side,omitempty"` Counterparty string `json:"counterparty,omitempty"` Tradetime int64 `json:"tradetime,omitempty"` }
type UnderlyingInfo ¶
Source Files ¶
- account.go
- account_info.go
- activation_condition.go
- amount.go
- calendar_day.go
- country.go
- custom_defines.go
- error_response.go
- feed.go
- indicator.go
- instrument.go
- instrument_type.go
- intraday_graph.go
- intraday_tick.go
- issuer.go
- ledger.go
- ledger_information.go
- leverage_filter.go
- list.go
- logged_in_status.go
- login.go
- market.go
- news_item.go
- news_preview.go
- news_source.go
- option_pair.go
- option_pair_filter.go
- order.go
- order_reply.go
- order_type.go
- position.go
- public_trade.go
- public_trades.go
- realtime_access.go
- sector.go
- status.go
- ticksize_interval.go
- ticksize_table.go
- tradable.go
- tradable_id.go
- tradable_info.go
- trade.go
- underlying_info.go
- validity.go
Click to show internal directories.
Click to hide internal directories.