Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Contract ¶
type Contract struct { Conid int `json:"conid"` Name string `json:"name"` AssetClass string `json:"assetClass"` Expiry string `json:"expiry"` LastTradingDay string `json:"lastTradingDay"` Group string `json:"group"` PutOrCall string `json:"putOrCall"` Sector string `json:"sector"` SectorGroup string `json:"sectorGroup"` Strike int `json:"strike"` Ticker string `json:"ticker"` UndConid int `json:"undConid"` FullName string `json:"fullName"` PageSize int `json:"pageSize"` }
type ReqContractBody ¶
type ReqContractBody struct {
Conids [1]string `json:"conids"`
}
type ReqSecurityBody ¶
type ReqSecurityBody struct { // should be true if the search is to be performed by name. false by default. Name bool `json:"name,omitempty"` // If search is done by name, only the assets provided in this field will be returned. Currently, only STK is supported. SecType string `json:"secType,omitempty"` // symbol or name to be searched // Required: true Symbol *string `json:"symbol"` }
PostIserverSecdefSearchBody post iserver secdef search body swagger:model PostIserverSecdefSearchBody
type RspContract ¶
type RspContract struct {
Contracts []Contract
}
type RspSecurity ¶
type RspSecurity struct {
Securities []Security
}
type Security ¶
type Security struct { // company header CompanyHeader string `json:"companyHeader,omitempty"` // company name CompanyName string `json:"companyName,omitempty"` // conid Conid int64 `json:"conid,omitempty"` // description Description string `json:"description,omitempty"` // opt Opt string `json:"opt,omitempty"` // sections Sections []interface{} `json:"sections"` // symbol Symbol string `json:"symbol,omitempty"` // war War string `json:"war,omitempty"` }
Click to show internal directories.
Click to hide internal directories.