schwab_api 0.0.4

An unofficial rust library for Schwab API
Documentation
{
    "AAPL": {
        "assetMainType": "EQUITY",
        "assetSubType": "COE",
        "quoteType": "NBBO",
        "realtime": true,
        "ssid": 1973757747,
        "symbol": "AAPL",
        "fundamental": {
            "avg10DaysVolume": 75295243.0,
            "avg1YearVolume": 58577527.0,
            "declarationDate": "2024-05-02T04:00:00Z",
            "divAmount": 1.0,
            "divExDate": "2024-05-10T04:00:00Z",
            "divFreq": 4,
            "divPayAmount": 0.25,
            "divPayDate": "2024-05-16T04:00:00Z",
            "divYield": 0.52709,
            "eps": 6.13,
            "fundLeverageFactor": 0.0,
            "lastEarningsDate": "2024-05-02T04:00:00Z",
            "nextDivExDate": "2024-08-12T04:00:00Z",
            "nextDivPayDate": "2024-08-16T04:00:00Z",
            "peRatio": 29.57175
        },
        "quote": {
            "52WeekHigh": 199.62,
            "52WeekLow": 164.075,
            "askMICId": "ARCX",
            "askPrice": 189.92,
            "askSize": 1,
            "askTime": 1715990363904,
            "bidMICId": "ARCX",
            "bidPrice": 189.9,
            "bidSize": 6,
            "bidTime": 1715990363904,
            "closePrice": 189.84,
            "highPrice": 190.81,
            "lastMICId": "XADF",
            "lastPrice": 189.9,
            "lastSize": 2,
            "lowPrice": 189.18,
            "mark": 189.9,
            "markChange": 0.06,
            "markPercentChange": 0.03160556,
            "netChange": 0.06,
            "netPercentChange": 0.03160556,
            "openPrice": 189.51,
            "postMarketChange": 0.03,
            "postMarketPercentChange": 0.01580028,
            "quoteTime": 1715990363904,
            "securityStatus": "Normal",
            "totalVolume": 41282925,
            "tradeTime": 1715990395834
        },
        "reference": {
            "cusip": "037833100",
            "description": "Apple Inc",
            "exchange": "Q",
            "exchangeName": "NASDAQ",
            "isHardToBorrow": false,
            "isShortable": true,
            "htbRate": 0.0
        },
        "regular": {
            "regularMarketLastPrice": 189.87,
            "regularMarketLastSize": 200,
            "regularMarketNetChange": 0.03,
            "regularMarketPercentChange": 0.01580278,
            "regularMarketTradeTime": 1715976000211
        }
    },
    "EUR/USD": {
        "assetMainType": "FOREX",
        "realtime": true,
        "symbol": "EUR/USD",
        "quote": {
            "52WeekHigh": 0.0,
            "52WeekLow": 0.0,
            "askPrice": 1.08698,
            "askSize": 1000000,
            "bidPrice": 1.08684,
            "bidSize": 1200000,
            "closePrice": 1.08854,
            "highPrice": 0.0,
            "lastPrice": 1.08693,
            "lastSize": 10000,
            "lowPrice": 0.0,
            "mark": 1.08693,
            "netChange": -0.00161,
            "netPercentChange": -0.14790453,
            "openPrice": 0.0,
            "quoteTime": 1715979540420,
            "securityStatus": "Unknown",
            "tick": 0.0,
            "tickAmount": 0.0,
            "totalVolume": 0,
            "tradeTime": 1715979454000
        },
        "reference": {
            "description": "Euro/USDollar Spot",
            "exchange": "!",
            "exchangeName": "GFT",
            "isTradable": false
        }
    },
    "/ESZ24": {
        "assetMainType": "FUTURE",
        "realtime": true,
        "ssid": 73281843,
        "symbol": "/ESZ24",
        "quote": {
            "askPrice": 5519.75,
            "askSize": 1,
            "askTime": 1715979600064,
            "bidPrice": 5410.0,
            "bidSize": 1,
            "bidTime": 1715979600064,
            "closePrice": 5439.75,
            "futurePercentChange": 0.13787398,
            "highPrice": 0.0,
            "lastPrice": 5447.25,
            "lastSize": 1,
            "lowPrice": 0.0,
            "mark": 5447.25,
            "netChange": 7.5,
            "openInterest": 4775,
            "openPrice": 0.0,
            "quoteTime": 1715979600064,
            "quotedInSession": false,
            "securityStatus": "Closed",
            "settleTime": 1715904000000,
            "tick": 0.25,
            "tickAmount": 12.5,
            "totalVolume": 50,
            "tradeTime": 1715979538361
        },
        "reference": {
            "description": "E-mini S&P 500 Index Futures,Dec-2024,ETH",
            "exchange": "@",
            "exchangeName": "XCME",
            "futureExpirationDate": 1734670800000,
            "futureIsActive": false,
            "futureMultiplier": 50.0,
            "futurePriceFormat": "D,D",
            "futureSettlementPrice": 5439.75,
            "futureTradingHours": "GLBX(de=1640;0=-17001600;1=r-17001600d-15551640;7=d-16401555)",
            "product": "/ES"
        }
    },
    "$SPX": {
        "assetMainType": "INDEX",
        "realtime": true,
        "ssid": 1819771877,
        "symbol": "$SPX",
        "fundamental": {
            "avg10DaysVolume": 0.0,
            "avg1YearVolume": 0.0,
            "divAmount": 0.0,
            "divFreq": 0,
            "divPayAmount": 0.0,
            "divYield": 0.0,
            "eps": 0.0,
            "fundLeverageFactor": 0.0,
            "peRatio": 0.0
        },
        "quote": {
            "52WeekHigh": 5305.45,
            "52WeekLow": 4099.12,
            "closePrice": 5297.1,
            "highPrice": 5305.45,
            "lastPrice": 5303.27,
            "lowPrice": 5283.59,
            "netChange": 6.17,
            "netPercentChange": 0.11647883,
            "openPrice": 5303.1,
            "securityStatus": "Closed",
            "totalVolume": 1978684063,
            "tradeTime": 1715980914097
        },
        "reference": {
            "description": "S&P 500 INDEX",
            "exchange": "0",
            "exchangeName": "Index"
        }
    },
    "AAAIX": {
        "assetMainType": "MUTUAL_FUND",
        "assetSubType": "OEF",
        "realtime": true,
        "ssid": 1271526288,
        "symbol": "AAAIX",
        "fundamental": {
            "avg10DaysVolume": 0.0,
            "avg1YearVolume": 0.0,
            "divAmount": 0.1523,
            "divExDate": "2023-12-21T05:00:00Z",
            "divFreq": 1,
            "divPayAmount": 0.1523,
            "divPayDate": "2023-12-21T05:00:00Z",
            "divYield": 2.00656,
            "eps": 0.0,
            "fundLeverageFactor": 0.0,
            "nextDivExDate": "2024-12-23T05:00:00Z",
            "nextDivPayDate": "2024-12-23T05:00:00Z",
            "peRatio": 0.0
        },
        "quote": {
            "52WeekHigh": 7.9,
            "52WeekLow": 6.6,
            "lastPrice": 7.88,
            "closePrice": 7.88,
            "nAV": 7.88,
            "netChange": 0.0,
            "netPercentChange": 0.0,
            "securityStatus": "Normal",
            "tradeTime": 1715985900000
        },
        "reference": {
            "cusip": "025085853",
            "description": "AMERICAN CENTURY STRAT ALLC: AGRSV I",
            "exchange": "3",
            "exchangeName": "Mutual Fund"
        }
    },
    "AAPL  240517C00100000": {
        "assetMainType": "OPTION",
        "realtime": true,
        "ssid": 95686787,
        "symbol": "AAPL  240517C00100000",
        "quote": {
            "52WeekHigh": 90.0,
            "52WeekLow": 65.15,
            "askPrice": 90.7,
            "askSize": 62,
            "bidPrice": 89.2,
            "bidSize": 62,
            "closePrice": 89.8787,
            "delta": 0.99953659,
            "gamma": 4.478E-05,
            "highPrice": 89.74,
            "indAskPrice": 0.0,
            "indBidPrice": 0.0,
            "indQuoteTime": 0,
            "impliedYield": 0.0,
            "lastPrice": 89.69,
            "lastSize": 1,
            "lowPrice": 89.69,
            "mark": 89.95,
            "markChange": 0.0713,
            "markPercentChange": 0.07932914,
            "moneyIntrinsicValue": 89.87,
            "netChange": -0.1887,
            "netPercentChange": -0.20994963,
            "openInterest": 6,
            "openPrice": 89.72,
            "quoteTime": 1715975993976,
            "rho": 0.00022984,
            "securityStatus": "Normal",
            "theoreticalOptionValue": 89.82863449,
            "theta": -0.00863449,
            "timeValue": -0.17999756,
            "totalVolume": 4,
            "tradeTime": 1715971637892,
            "underlyingPrice": 189.87,
            "vega": 4.896E-05,
            "volatility": 1318.91347743
        },
        "reference": {
            "contractType": "C",
            "daysToExpiration": 0,
            "deliverables": "100 AAPL",
            "description": "AAPL 05/17/2024 100.00 C",
            "exchange": "O",
            "exchangeName": "OPR",
            "exerciseType": "A",
            "expirationDay": 17,
            "expirationMonth": 5,
            "expirationType": "S",
            "expirationYear": 2024,
            "isPennyPilot": true,
            "lastTradingDay": 1715990400000,
            "multiplier": 100.0,
            "settlementType": "P",
            "strikePrice": 100.0,
            "underlying": "AAPL"
        }
    }
}