java.lang.Object
net.jacobpeterson.alpaca.openapi.broker.model.USDBalances

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-03-23T18:58:47.485165-07:00[America/Los_Angeles]") public class USDBalances extends Object
Account balances in USD.
  • Field Details

  • Constructor Details

    • USDBalances

      public USDBalances()
  • Method Details

    • buyingPower

      public USDBalances buyingPower(BigDecimal buyingPower)
    • getBuyingPower

      @Nullable public BigDecimal getBuyingPower()
      Get buyingPower
      Returns:
      buyingPower
    • setBuyingPower

      public void setBuyingPower(BigDecimal buyingPower)
    • regtBuyingPower

      public USDBalances regtBuyingPower(BigDecimal regtBuyingPower)
    • getRegtBuyingPower

      @Nullable public BigDecimal getRegtBuyingPower()
      Get regtBuyingPower
      Returns:
      regtBuyingPower
    • setRegtBuyingPower

      public void setRegtBuyingPower(BigDecimal regtBuyingPower)
    • daytradingBuyingPower

      public USDBalances daytradingBuyingPower(BigDecimal daytradingBuyingPower)
    • getDaytradingBuyingPower

      @Nullable public BigDecimal getDaytradingBuyingPower()
      Get daytradingBuyingPower
      Returns:
      daytradingBuyingPower
    • setDaytradingBuyingPower

      public void setDaytradingBuyingPower(BigDecimal daytradingBuyingPower)
    • optionsBuyingPower

      public USDBalances optionsBuyingPower(BigDecimal optionsBuyingPower)
    • getOptionsBuyingPower

      @Nullable public BigDecimal getOptionsBuyingPower()
      Get optionsBuyingPower
      Returns:
      optionsBuyingPower
    • setOptionsBuyingPower

      public void setOptionsBuyingPower(BigDecimal optionsBuyingPower)
    • cash

      public USDBalances cash(BigDecimal cash)
    • getCash

      @Nullable public BigDecimal getCash()
      Get cash
      Returns:
      cash
    • setCash

      public void setCash(BigDecimal cash)
    • cashWithdrawable

      public USDBalances cashWithdrawable(BigDecimal cashWithdrawable)
    • getCashWithdrawable

      @Nullable public BigDecimal getCashWithdrawable()
      Get cashWithdrawable
      Returns:
      cashWithdrawable
    • setCashWithdrawable

      public void setCashWithdrawable(BigDecimal cashWithdrawable)
    • cashTransferable

      public USDBalances cashTransferable(BigDecimal cashTransferable)
    • getCashTransferable

      @Nullable public BigDecimal getCashTransferable()
      Get cashTransferable
      Returns:
      cashTransferable
    • setCashTransferable

      public void setCashTransferable(BigDecimal cashTransferable)
    • pendingTransferOut

      public USDBalances pendingTransferOut(BigDecimal pendingTransferOut)
    • getPendingTransferOut

      @Nullable public BigDecimal getPendingTransferOut()
      Get pendingTransferOut
      Returns:
      pendingTransferOut
    • setPendingTransferOut

      public void setPendingTransferOut(BigDecimal pendingTransferOut)
    • portfolioValue

      public USDBalances portfolioValue(BigDecimal portfolioValue)
    • getPortfolioValue

      @Nullable public BigDecimal getPortfolioValue()
      Get portfolioValue
      Returns:
      portfolioValue
    • setPortfolioValue

      public void setPortfolioValue(BigDecimal portfolioValue)
    • equity

      public USDBalances equity(BigDecimal equity)
    • getEquity

      @Nullable public BigDecimal getEquity()
      Get equity
      Returns:
      equity
    • setEquity

      public void setEquity(BigDecimal equity)
    • longMarketValue

      public USDBalances longMarketValue(BigDecimal longMarketValue)
    • getLongMarketValue

      @Nullable public BigDecimal getLongMarketValue()
      Get longMarketValue
      Returns:
      longMarketValue
    • setLongMarketValue

      public void setLongMarketValue(BigDecimal longMarketValue)
    • shortMarketValue

      public USDBalances shortMarketValue(BigDecimal shortMarketValue)
    • getShortMarketValue

      @Nullable public BigDecimal getShortMarketValue()
      Get shortMarketValue
      Returns:
      shortMarketValue
    • setShortMarketValue

      public void setShortMarketValue(BigDecimal shortMarketValue)
    • initialMargin

      public USDBalances initialMargin(BigDecimal initialMargin)
    • getInitialMargin

      @Nullable public BigDecimal getInitialMargin()
      Get initialMargin
      Returns:
      initialMargin
    • setInitialMargin

      public void setInitialMargin(BigDecimal initialMargin)
    • maintenanceMargin

      public USDBalances maintenanceMargin(BigDecimal maintenanceMargin)
    • getMaintenanceMargin

      @Nullable public BigDecimal getMaintenanceMargin()
      Get maintenanceMargin
      Returns:
      maintenanceMargin
    • setMaintenanceMargin

      public void setMaintenanceMargin(BigDecimal maintenanceMargin)
    • lastMaintenanceMargin

      public USDBalances lastMaintenanceMargin(BigDecimal lastMaintenanceMargin)
    • getLastMaintenanceMargin

      @Nullable public BigDecimal getLastMaintenanceMargin()
      Get lastMaintenanceMargin
      Returns:
      lastMaintenanceMargin
    • setLastMaintenanceMargin

      public void setLastMaintenanceMargin(BigDecimal lastMaintenanceMargin)
    • sma

      public USDBalances sma(BigDecimal sma)
    • getSma

      @Nullable public BigDecimal getSma()
      Get sma
      Returns:
      sma
    • setSma

      public void setSma(BigDecimal sma)
    • lastEquity

      public USDBalances lastEquity(BigDecimal lastEquity)
    • getLastEquity

      @Nullable public BigDecimal getLastEquity()
      Get lastEquity
      Returns:
      lastEquity
    • setLastEquity

      public void setLastEquity(BigDecimal lastEquity)
    • lastLongMarketValue

      public USDBalances lastLongMarketValue(BigDecimal lastLongMarketValue)
    • getLastLongMarketValue

      @Nullable public BigDecimal getLastLongMarketValue()
      Get lastLongMarketValue
      Returns:
      lastLongMarketValue
    • setLastLongMarketValue

      public void setLastLongMarketValue(BigDecimal lastLongMarketValue)
    • lastShortMarketValue

      public USDBalances lastShortMarketValue(BigDecimal lastShortMarketValue)
    • getLastShortMarketValue

      @Nullable public BigDecimal getLastShortMarketValue()
      Get lastShortMarketValue
      Returns:
      lastShortMarketValue
    • setLastShortMarketValue

      public void setLastShortMarketValue(BigDecimal lastShortMarketValue)
    • lastCash

      public USDBalances lastCash(BigDecimal lastCash)
    • getLastCash

      @Nullable public BigDecimal getLastCash()
      Get lastCash
      Returns:
      lastCash
    • setLastCash

      public void setLastCash(BigDecimal lastCash)
    • lastBuyingPower

      public USDBalances lastBuyingPower(BigDecimal lastBuyingPower)
    • getLastBuyingPower

      @Nullable public BigDecimal getLastBuyingPower()
      Get lastBuyingPower
      Returns:
      lastBuyingPower
    • setLastBuyingPower

      public void setLastBuyingPower(BigDecimal lastBuyingPower)
    • lastRegtBuyingPower

      public USDBalances lastRegtBuyingPower(BigDecimal lastRegtBuyingPower)
    • getLastRegtBuyingPower

      @Nullable public BigDecimal getLastRegtBuyingPower()
      Get lastRegtBuyingPower
      Returns:
      lastRegtBuyingPower
    • setLastRegtBuyingPower

      public void setLastRegtBuyingPower(BigDecimal lastRegtBuyingPower)
    • lastDaytradingBuyingPower

      public USDBalances lastDaytradingBuyingPower(String lastDaytradingBuyingPower)
    • getLastDaytradingBuyingPower

      @Nullable public String getLastDaytradingBuyingPower()
      Get lastDaytradingBuyingPower
      Returns:
      lastDaytradingBuyingPower
    • setLastDaytradingBuyingPower

      public void setLastDaytradingBuyingPower(String lastDaytradingBuyingPower)
    • lastOptionsBuyingPower

      public USDBalances lastOptionsBuyingPower(BigDecimal lastOptionsBuyingPower)
    • getLastOptionsBuyingPower

      @Nullable public BigDecimal getLastOptionsBuyingPower()
      Get lastOptionsBuyingPower
      Returns:
      lastOptionsBuyingPower
    • setLastOptionsBuyingPower

      public void setLastOptionsBuyingPower(BigDecimal lastOptionsBuyingPower)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Throws:
      IOException
    • fromJson

      public static USDBalances fromJson(String jsonString) throws IOException
      Create an instance of USDBalances given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of USDBalances
      Throws:
      IOException - if the JSON string is invalid with respect to USDBalances
    • toJson

      public String toJson()
      Convert an instance of USDBalances to an JSON string
      Returns:
      JSON string