Class AccountTradingLimit
java.lang.Object
markets.alpaca.client.openapi.broker.model.AccountTradingLimit
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class AccountTradingLimit
extends Object
implements Serializable
AccountTradingLimit
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailable(BigDecimal available) dailyNetLimit(BigDecimal dailyNetLimit) booleanstatic AccountTradingLimitCreate an instance of AccountTradingLimit given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The remaining net buying limit that can be used for trading.The net buying limit that can be reached before further trading activity is restricted.getHeld()The limit that is currently being held for open ordersThe swap rate is applicable for Local Currency Trading (LCT) accountsgetUsd()Get usdgetUsed()The real time net value of cash inflows (buy trades, etc.) with cash outflows (sell trades, etc).inthashCode()held(BigDecimal held) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAvailable(BigDecimal available) voidsetDailyNetLimit(BigDecimal dailyNetLimit) voidsetHeld(BigDecimal held) voidsetSwapRate(BigDecimal swapRate) voidvoidsetUsed(BigDecimal used) swapRate(BigDecimal swapRate) toJson()Convert an instance of AccountTradingLimit to an JSON stringtoString()used(BigDecimal used) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_AVAILABLE
- See Also:
-
SERIALIZED_NAME_DAILY_NET_LIMIT
- See Also:
-
SERIALIZED_NAME_HELD
- See Also:
-
SERIALIZED_NAME_SWAP_RATE
- See Also:
-
SERIALIZED_NAME_USD
- See Also:
-
SERIALIZED_NAME_USED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AccountTradingLimit
public AccountTradingLimit()
-
-
Method Details
-
available
-
getAvailable
The remaining net buying limit that can be used for trading.- Returns:
- available
-
setAvailable
-
dailyNetLimit
-
getDailyNetLimit
The net buying limit that can be reached before further trading activity is restricted. Please reach out to learn more about how this limit is determined.- Returns:
- dailyNetLimit
-
setDailyNetLimit
-
held
-
getHeld
The limit that is currently being held for open orders- Returns:
- held
-
setHeld
-
swapRate
-
getSwapRate
The swap rate is applicable for Local Currency Trading (LCT) accounts- Returns:
- swapRate
-
setSwapRate
-
usd
-
getUsd
Get usd- Returns:
- usd
-
setUsd
-
used
-
getUsed
The real time net value of cash inflows (buy trades, etc.) with cash outflows (sell trades, etc). This will be dynamic throughout the day based on user activity, with executed orders being reset at the start of the next trading day.- Returns:
- used
-
setUsed
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the AccountTradingLimit instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to AccountTradingLimit
-
fromJson
Create an instance of AccountTradingLimit given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountTradingLimit
- Throws:
IOException- if the JSON string is invalid with respect to AccountTradingLimit
-
toJson
Convert an instance of AccountTradingLimit to an JSON string- Returns:
- JSON string
-