schwab_api 0.0.4

An unofficial rust library for Schwab API
Documentation
[
  {
    "securitiesAccount": {
      "type": "CASH",
      "accountNumber": "12345678",
      "roundTrips": 0,
      "isDayTrader": false,
      "isClosingOnlyRestricted": false,
      "pfcbFlag": false,
      "initialBalances": {
        "accruedInterest": 0,
        "cashAvailableForTrading": 12.34,
        "cashAvailableForWithdrawal": 12.34,
        "cashBalance": 12.34,
        "bondValue": 0,
        "cashReceipts": 0,
        "liquidationValue": 12.34,
        "longOptionMarketValue": 0,
        "longStockValue": 12.34,
        "moneyMarketFund": 0,
        "mutualFundValue": 12.34,
        "shortOptionMarketValue": 0,
        "shortStockValue": 0,
        "isInCall": false,
        "unsettledCash": 0,
        "cashDebitCallValue": 0,
        "pendingDeposits": 0,
        "accountValue": 12.34
      },
      "currentBalances": {
        "accruedInterest": 0,
        "cashBalance": 12.34,
        "cashReceipts": 0,
        "longOptionMarketValue": 0,
        "liquidationValue": 12.34,
        "longMarketValue": 12.34,
        "moneyMarketFund": 0,
        "savings": 0,
        "shortMarketValue": 0,
        "pendingDeposits": 0,
        "mutualFundValue": 0,
        "bondValue": 0,
        "shortOptionMarketValue": 0,
        "cashAvailableForTrading": 12.34,
        "cashAvailableForWithdrawal": 12.34,
        "cashCall": 0,
        "longNonMarginableMarketValue": 12.34,
        "totalCash": 12.34,
        "cashDebitCallValue": 0,
        "unsettledCash": 0
      },
      "projectedBalances": {
        "cashAvailableForTrading": 12.34,
        "cashAvailableForWithdrawal": 12.34
      }
    }
  },
  {
    "securitiesAccount": {
      "type": "MARGIN",
      "accountNumber": "12345678",
      "roundTrips": 0,
      "isDayTrader": false,
      "isClosingOnlyRestricted": false,
      "pfcbFlag": false,
      "position": null,
      "initialBalances": {
        "accruedInterest": 0.0,
        "availableFundsNonMarginableTrade": 4069.76,
        "bondValue": 18384.0,
        "buyingPower": 9192.0,
        "cashBalance": 4069.76,
        "cashAvailableForTrading": 0.0,
        "cashReceipts": 0.0,
        "dayTradingBuyingPower": 19434.0,
        "dayTradingBuyingPowerCall": 0.0,
        "dayTradingEquityCall": 0.0,
        "equity": 5121.6,
        "equityPercentage": 100.0,
        "liquidationValue": 5121.6,
        "longMarginValue": 1051.84,
        "longOptionMarketValue": 0.0,
        "longStockValue": 1051.84,
        "maintenanceCall": 0.0,
        "maintenanceRequirement": 316.0,
        "margin": 4069.76,
        "marginEquity": 5121.6,
        "moneyMarketFund": 0.0,
        "mutualFundValue": 4069.76,
        "regTCall": 0.0,
        "shortMarginValue": 0.0,
        "shortOptionMarketValue": 0.0,
        "shortStockValue": 0.0,
        "totalCash": 0.0,
        "isInCall": false,
        "pendingDeposits": 0.0,
        "marginBalance": 0.0,
        "shortBalance": 0.0,
        "accountValue": 5121.6
      },
      "currentBalances": {
        "availableFunds": 4596.0,
        "availableFundsNonMarginableTrade": 4596.0,
        "buyingPower": 9192.0,
        "buyingPowerNonMarginableTrade": 4596.0,
        "dayTradingBuyingPower": 19434.0,
        "equity": 5136.16,
        "equityPercentage": 100.0,
        "longMarginValue": 1066.4,
        "maintenanceCall": 0.0,
        "maintenanceRequirement": 319.92,
        "marginBalance": 0.0,
        "regTCall": 0.0,
        "shortBalance": 0.0,
        "shortMarginValue": 0.0,
        "sma": 4596.0
      },
      "projectedBalances": {
        "availableFunds": 4596.0,
        "availableFundsNonMarginableTrade": 4596.0,
        "buyingPower": 9192.0,
        "dayTradingBuyingPower": 19434.0,
        "dayTradingBuyingPowerCall": 0.0,
        "maintenanceCall": 0.0,
        "regTCall": 0.0,
        "isInCall": false,
        "stockBuyingPower": 9192.0
      }
    }
  }
]