Class DailyTradingLimit
java.lang.Object
markets.alpaca.client.openapi.broker.model.DailyTradingLimit
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.25.0")
public class DailyTradingLimit
extends Object
implements Serializable
Correspondent-level daily net buying limit and the real-time amount currently consuming it.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncashHeld(BigDecimal cashHeld) correspondent(String correspondent) dailyNetLimit(BigDecimal dailyNetLimit) booleanexecutedBuys(BigDecimal executedBuys) executedSells(BigDecimal executedSells) static DailyTradingLimitCreate an instance of DailyTradingLimit given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Cash reserved for open cash-secured put positions.The correspondent code the limits apply to.The daily net buying limit for the correspondent; further buying is halted once the in_use_limit limit reaches this value.Cumulative cash value of executed buy activity contributing to the in-use limit since the last reset.Cumulative cash value of executed sell activity offsetting the in-use limit since the last reset.Real-time net amount currently consuming the daily limit.Reserved cash value of currently open buy orders (limit price for limit orders, notional or estimated mid for market orders) contributing to the in-use limit.Reserved cash value of currently open sell orders offsetting the in-use limit.inthashCode()inUseLimit(BigDecimal inUseLimit) openBuys(BigDecimal openBuys) openSells(BigDecimal openSells) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCashHeld(BigDecimal cashHeld) voidsetCorrespondent(String correspondent) voidsetDailyNetLimit(BigDecimal dailyNetLimit) voidsetExecutedBuys(BigDecimal executedBuys) voidsetExecutedSells(BigDecimal executedSells) voidsetInUseLimit(BigDecimal inUseLimit) voidsetOpenBuys(BigDecimal openBuys) voidsetOpenSells(BigDecimal openSells) toJson()Convert an instance of DailyTradingLimit to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CASH_HELD
- See Also:
-
SERIALIZED_NAME_CORRESPONDENT
- See Also:
-
SERIALIZED_NAME_DAILY_NET_LIMIT
- See Also:
-
SERIALIZED_NAME_EXECUTED_BUYS
- See Also:
-
SERIALIZED_NAME_EXECUTED_SELLS
- See Also:
-
SERIALIZED_NAME_IN_USE_LIMIT
- See Also:
-
SERIALIZED_NAME_OPEN_BUYS
- See Also:
-
SERIALIZED_NAME_OPEN_SELLS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
DailyTradingLimit
public DailyTradingLimit()
-
-
Method Details
-
cashHeld
-
getCashHeld
Cash reserved for open cash-secured put positions. Only present in the response when the correspondent has at least one open cash-secured put; the field is omitted from the response otherwise (including for options-enabled correspondents with no open cash-secured puts).- Returns:
- cashHeld
-
setCashHeld
-
correspondent
-
getCorrespondent
The correspondent code the limits apply to.- Returns:
- correspondent
-
setCorrespondent
-
dailyNetLimit
-
getDailyNetLimit
The daily net buying limit for the correspondent; further buying is halted once the in_use_limit limit reaches this value.- Returns:
- dailyNetLimit
-
setDailyNetLimit
-
executedBuys
-
getExecutedBuys
Cumulative cash value of executed buy activity contributing to the in-use limit since the last reset.- Returns:
- executedBuys
-
setExecutedBuys
-
executedSells
-
getExecutedSells
Cumulative cash value of executed sell activity offsetting the in-use limit since the last reset.- Returns:
- executedSells
-
setExecutedSells
-
inUseLimit
-
getInUseLimit
Real-time net amount currently consuming the daily limit. Equal to `executed_buys` − `executed_sells` + `open_buys` − `open_sells` (+ `cash_held` when a cash-secured put is open). Resets at the start of the next trading day at 8.00 PM ET.- Returns:
- inUseLimit
-
setInUseLimit
-
openBuys
-
getOpenBuys
Reserved cash value of currently open buy orders (limit price for limit orders, notional or estimated mid for market orders) contributing to the in-use limit.- Returns:
- openBuys
-
setOpenBuys
-
openSells
-
getOpenSells
Reserved cash value of currently open sell orders offsetting the in-use limit.- Returns:
- openSells
-
setOpenSells
-
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 DailyTradingLimit 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 DailyTradingLimit
-
fromJson
Create an instance of DailyTradingLimit given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DailyTradingLimit
- Throws:
IOException- if the JSON string is invalid with respect to DailyTradingLimit
-
toJson
Convert an instance of DailyTradingLimit to an JSON string- Returns:
- JSON string
-