cmd

package
v0.0.0-...-3ebb745 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

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"`
}

func (Security) Print

func (a Security) Print()

Print to console

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL