Documentation ¶
Index ¶
- func GetHistoricalData(country string, assetType string, symbol string, fromDate string, ...) ([][]string, error)
- func HistoricalDataToCSV(country string, assetType string, symbol string, fromDate string, ...) error
- func SearchJSon(symbol string, assetType string, country string) (string, error)
- func SearchSymbolJSON(symbol string) (string, error)
- type Filter
- type Quote
- type Stock
- type Total
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHistoricalData ¶
func HistoricalDataToCSV ¶
func SearchSymbolJSON ¶
Types ¶
type Quote ¶
type Quote struct { PairId int `json:"pairId"` Name string `json:"name"` Flag string `json:"flag"` Link string `json:"link"` Symbol string `json:"symbol"` TypeString string `json:"type"` PairType string `json:"pair_type"` PairTypeRaw string `json:"pair_type_raw"` CountryID int `json:"countryID"` Sector int `json:"sector"` Region int `json:"region"` Industry int `json:"industry"` IsCrypto bool `json:"isCrypto"` Exchange string `json:"exchange"` ExchangeID int `json:"exchangeID"` }
type Stock ¶
type Stock struct { Quotes []Quote `json:"quotes"` Totals Total `json:"total"` Filters []Filter `json:"filters"` }
{"quotes":[{"pairId":1095913,"name":"Apple Inc","flag":"Italy", "link":"\/equities\/apple-computer-inc?cid=1095913", "symbol":"AAPLE","type":"Stock - Milan", "pair_type_raw":"Equities", "pair_type":"equities", "countryID":10,"sector":0,"region":6,"industry":0, "isCrypto":false,"exchange":"Milan","exchangeID":6}], "total":{"quotes":1,"allResults":1}, "filters":[]}
Click to show internal directories.
Click to hide internal directories.