Documentation ¶
Index ¶
- Constants
- Variables
- func BuildUserAgent(browser *playwright.Browser) string
- func BuildVersionString() string
- func DecryptAES(ct string) string
- func EncryptAES(plaintext string) string
- func GetDependencyList() []string
- func Password() string
- func SaveToParquet(records []*Asset, fn string) error
- func StealthPage(context *playwright.BrowserContext) playwright.Page
- func TrimWhiteSpace(assets []*Asset)
- func Username() string
- type Asset
- type Version
Constants ¶
Variables ¶
View Source
var CurrentVersion = Version{
Major: 0,
Minor: 3,
Patch: 0,
Suffix: "dev",
}
CurrentVersion represents the current build version. This is the only one in the system
Functions ¶
func BuildUserAgent ¶
func BuildUserAgent(browser *playwright.Browser) string
func BuildVersionString ¶
func BuildVersionString() string
BuildVersionString creates a version string. This is what you see when running "import-fred version".
func DecryptAES ¶
func EncryptAES ¶
func GetDependencyList ¶
func GetDependencyList() []string
GetDependencyList returns a sorted dependency list on the format package="version".
func SaveToParquet ¶
func StealthPage ¶
func StealthPage(context *playwright.BrowserContext) playwright.Page
StealthPage creates a new playwright page with stealth js loaded to prevent bot detection
func TrimWhiteSpace ¶
func TrimWhiteSpace(assets []*Asset)
Types ¶
type Asset ¶
type Asset struct { Ticker string `json:"ticker" parquet:"name=ticker, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"` Name string `json:"Name" parquet:"name=name, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"` Description string `json:"description" parquet:"name=description, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"` PrimaryExchange string `json:"primary_exchange" parquet:"name=primary_exchange, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"` AssetType string `json:"asset_type" parquet:"name=asset_type, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"` CompositeFigi string `json:"composite_figi" parquet:"name=composite_figi, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"` CUSIP string `json:"cusip" parquet:"name=cusip, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"` ISIN string `json:"isin" parquet:"name=isin, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"` CIK string `json:"cik" parquet:"name=cik, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"` ListingDate string `json:"listing_date" parquet:"name=listing_date, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"` DelistingDate string `json:"delisting_date" parquet:"name=delisting_date, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"` Industry string `json:"industry" parquet:"name=industry, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"` Sector string `json:"sector" parquet:"name=sector, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"` Icon []byte `json:"icon"` IconURL string `json:"icon_url" parquet:"name=icon_url, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"` CorporateURL string `json:"corporate_url" parquet:"name=corporate_url, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"` HeadquartersLocation string `` /* 129-byte string literal not displayed */ SimilarTickers []string `` /* 130-byte string literal not displayed */ PolygonDetailAge int64 `json:"polygon_detail_age" parquet:"name=polygon_detail_age, type=INT64"` FidelityCusip bool `parquet:"name=fidelity_cusip, type=BOOLEAN"` LastUpdated int64 `json:"last_updated" parquet:"name=last_update, type=INT64"` Source string `json:"source" parquet:"name=source, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"` }
func ReadFromParquet ¶
func (*Asset) MarshalZerologObject ¶
type Version ¶
type Version struct { // Increment this for backwards incompatible changes Major int // Increment this for feature releases Minor int // Increment this for bug releases Patch int // VersionSuffix is the suffix used in the PV API version string. // It will be blank for release versions. Suffix string }
Version represents a SemVer 2.0.0 compatible build version
Click to show internal directories.
Click to hide internal directories.