go-schwab / trader

⚡ fast unofficial schwab traderapi hook
https://pkg.go.dev/github.com/go-schwab/trader
GNU General Public License v2.0
14 stars 2 forks source link

schwab/data/instrument.go@GetInstrument() return #40

Closed samjtro closed 5 months ago

samjtro commented 5 months ago
{"instruments":[
{"fundamental":{
"symbol":"AAPL",
"high52":199.62,
"low52":164.075,
"dividendAmount":1.0,
"dividendYield":0.52016,
"dividendDate":"2024-05-10 00:00:00.0",
"peRatio":29.94716,
"pegRatio":95.34233,
"pbRatio":35.44905,
"prRatio":6.98872,
"pcfRatio":23.01545,
"grossMarginTTM":45.5858,
"grossMarginMRQ":46.578,
"netProfitMarginTTM":26.3058,
"netProfitMarginMRQ":26.0443,
"operatingMarginTTM":26.3058,
"operatingMarginMRQ":26.0443,
"returnOnEquity":147.2497,
"returnOnAssets":22.0738,
"returnOnInvestment":47.00102,
"quickRatio":0.87464,"
currentRatio":1.0371,
"interestCoverage":0.0,
"totalDebtToCapital":51.3642,
"ltDebtToEquity":140.9682,
"totalDebtToEquity":123.7714,
"epsTTM":6.41964,
"epsChangePercentTTM":9.1372,
"epsChangeYear":0.0,
"epsChange":0.0,
"revChangeYear":-2.8005,
"revChangeTTM":-0.9016,
"revChangeIn":0.0,
"sharesOutstanding":1.5334082E16,
"marketCapFloat":0.0,
"marketCap":2.9479772645E12,
"bookValuePerShare":4.83737,
"shortIntToFloat":0.0,
"shortIntDayToCover":0.0,
"divGrowthRate3Year":0.0,
"dividendPayAmount":0.25,
"dividendPayDate":"2024-05-16 00:00:00.0",
"beta":0.0,
"vol1DayAvg":0.0,
"vol10DayAvg":0.0,
"vol3MonthAvg":0.0,
"avg10DaysVolume":48038933,
"avg1DayVolume":58161687,
"avg3MonthVolume":62749116,
"declarationDate":"2024-05-02 00:00:00.0",
"dividendFreq":4,
"eps":6.13,
"dtnVolume":75158277,
"nextDividendPayDate":"2024-08-16 00:00:00.0",
"nextDividendDate":"2024-08-12 00:00:00.0",
"fundLeverageFactor":0.0},

"cusip":"037833100",
"symbol":"AAPL",
"description":"Apple Inc",
"exchange":"NASDAQ",
"assetType":"EQUITY"}
]}
samjtro commented 5 months ago

instrument working as of v0.8.8