Class USDAccountTradingLimit
java.lang.Object
markets.alpaca.client.openapi.broker.model.USDAccountTradingLimit
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class USDAccountTradingLimit
extends Object
implements Serializable
USDAccountTradingLimit
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailable(BigDecimal available) dailyNetLimit(BigDecimal dailyNetLimit) booleanstatic USDAccountTradingLimitCreate an instance of USDAccountTradingLimit 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 ordersgetUsed()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) voidsetUsed(BigDecimal used) toJson()Convert an instance of USDAccountTradingLimit 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_USED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
USDAccountTradingLimit
public USDAccountTradingLimit()
-
-
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
-
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 USDAccountTradingLimit 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 USDAccountTradingLimit
-
fromJson
Create an instance of USDAccountTradingLimit given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of USDAccountTradingLimit
- Throws:
IOException- if the JSON string is invalid with respect to USDAccountTradingLimit
-
toJson
Convert an instance of USDAccountTradingLimit to an JSON string- Returns:
- JSON string
-