Class TradeBankModel
- java.lang.Object
-
- app.cybrid.cybrid_api_bank.client.model.TradeBankModel
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-05-08T18:42:20.292688Z[Etc/UTC]") public class TradeBankModel extends Object
TradeBankModel
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CREATED_ATstatic StringJSON_PROPERTY_CUSTOMER_GUIDstatic StringJSON_PROPERTY_DELIVER_AMOUNTstatic StringJSON_PROPERTY_FAILURE_CODEstatic StringJSON_PROPERTY_FEEstatic StringJSON_PROPERTY_GUIDstatic StringJSON_PROPERTY_LABELSstatic StringJSON_PROPERTY_QUOTE_GUIDstatic StringJSON_PROPERTY_RECEIVE_AMOUNTstatic StringJSON_PROPERTY_REFERENCE_TRADE_GUIDstatic StringJSON_PROPERTY_SIDEstatic StringJSON_PROPERTY_STATEstatic StringJSON_PROPERTY_SYMBOLstatic StringJSON_PROPERTY_TRADE_TYPEstatic StringJSON_PROPERTY_UPDATED_AT
-
Constructor Summary
Constructors Constructor Description TradeBankModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TradeBankModeladdLabelsItem(String labelsItem)TradeBankModelcreatedAt(OffsetDateTime createdAt)TradeBankModelcustomerGuid(String customerGuid)TradeBankModeldeliverAmount(BigInteger deliverAmount)booleanequals(Object o)TradeBankModelfailureCode(String failureCode)TradeBankModelfee(BigInteger fee)OffsetDateTimegetCreatedAt()ISO8601 datetime the record was created at.StringgetCustomerGuid()The associated customer's identifier.org.openapitools.jackson.nullable.JsonNullable<String>getCustomerGuid_JsonNullable()BigIntegergetDeliverAmount()The amount to be delivered in base units of the currency: currency is \"counter_asset\" for buy and \"asset\" for sell.StringgetFailureCode()The failure code for failed trades; one of non_sufficient_funds, unsupported, limit_exceeded, expired_quote, or market_volatility.org.openapitools.jackson.nullable.JsonNullable<String>getFailureCode_JsonNullable()BigIntegergetFee()The fee associated with the trade.StringgetGuid()Auto-generated unique identifier for the trade.List<String>getLabels()The labels associated with the trade.org.openapitools.jackson.nullable.JsonNullable<List<String>>getLabels_JsonNullable()StringgetQuoteGuid()The associated quote's identifier.BigIntegergetReceiveAmount()The amount to be received in base units of the currency: currency is \"asset\" for buy and \"counter_asset\" for sell.StringgetReferenceTradeGuid()The guid of the related trade.org.openapitools.jackson.nullable.JsonNullable<String>getReferenceTradeGuid_JsonNullable()StringgetSide()The direction of the trade; one of buy or sell.StringgetState()The state of the trade; one of storing, pending, cancelled, completed, settling, or failed.StringgetSymbol()The trade symbol the pricing is related to.StringgetTradeType()The type of trade; one of platform, liquidation, or exit.OffsetDateTimegetUpdatedAt()ISO8601 datetime the record was last updated at.TradeBankModelguid(String guid)inthashCode()TradeBankModellabels(List<String> labels)TradeBankModelquoteGuid(String quoteGuid)TradeBankModelreceiveAmount(BigInteger receiveAmount)TradeBankModelreferenceTradeGuid(String referenceTradeGuid)voidsetCreatedAt(OffsetDateTime createdAt)voidsetCustomerGuid(String customerGuid)voidsetCustomerGuid_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> customerGuid)voidsetDeliverAmount(BigInteger deliverAmount)voidsetFailureCode(String failureCode)voidsetFailureCode_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> failureCode)voidsetFee(BigInteger fee)voidsetGuid(String guid)voidsetLabels(List<String> labels)voidsetLabels_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<String>> labels)voidsetQuoteGuid(String quoteGuid)voidsetReceiveAmount(BigInteger receiveAmount)voidsetReferenceTradeGuid(String referenceTradeGuid)voidsetReferenceTradeGuid_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> referenceTradeGuid)voidsetSide(String side)voidsetState(String state)voidsetSymbol(String symbol)voidsetTradeType(String tradeType)voidsetUpdatedAt(OffsetDateTime updatedAt)TradeBankModelside(String side)TradeBankModelstate(String state)TradeBankModelsymbol(String symbol)StringtoString()TradeBankModeltradeType(String tradeType)TradeBankModelupdatedAt(OffsetDateTime updatedAt)
-
-
-
Field Detail
-
JSON_PROPERTY_GUID
public static final String JSON_PROPERTY_GUID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRADE_TYPE
public static final String JSON_PROPERTY_TRADE_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CUSTOMER_GUID
public static final String JSON_PROPERTY_CUSTOMER_GUID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_QUOTE_GUID
public static final String JSON_PROPERTY_QUOTE_GUID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SYMBOL
public static final String JSON_PROPERTY_SYMBOL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SIDE
public static final String JSON_PROPERTY_SIDE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATE
public static final String JSON_PROPERTY_STATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FAILURE_CODE
public static final String JSON_PROPERTY_FAILURE_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RECEIVE_AMOUNT
public static final String JSON_PROPERTY_RECEIVE_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DELIVER_AMOUNT
public static final String JSON_PROPERTY_DELIVER_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FEE
public static final String JSON_PROPERTY_FEE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE_TRADE_GUID
public static final String JSON_PROPERTY_REFERENCE_TRADE_GUID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CREATED_AT
public static final String JSON_PROPERTY_CREATED_AT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_UPDATED_AT
public static final String JSON_PROPERTY_UPDATED_AT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LABELS
public static final String JSON_PROPERTY_LABELS
- See Also:
- Constant Field Values
-
-
Method Detail
-
guid
public TradeBankModel guid(String guid)
-
getGuid
@Nullable public String getGuid()
Auto-generated unique identifier for the trade.- Returns:
- guid
-
setGuid
public void setGuid(String guid)
-
tradeType
public TradeBankModel tradeType(String tradeType)
-
getTradeType
@Nullable public String getTradeType()
The type of trade; one of platform, liquidation, or exit.- Returns:
- tradeType
-
setTradeType
public void setTradeType(String tradeType)
-
customerGuid
public TradeBankModel customerGuid(String customerGuid)
-
getCustomerGuid
@Nullable public String getCustomerGuid()
The associated customer's identifier.- Returns:
- customerGuid
-
getCustomerGuid_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<String> getCustomerGuid_JsonNullable()
-
setCustomerGuid_JsonNullable
public void setCustomerGuid_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> customerGuid)
-
setCustomerGuid
public void setCustomerGuid(String customerGuid)
-
quoteGuid
public TradeBankModel quoteGuid(String quoteGuid)
-
getQuoteGuid
@Nullable public String getQuoteGuid()
The associated quote's identifier.- Returns:
- quoteGuid
-
setQuoteGuid
public void setQuoteGuid(String quoteGuid)
-
symbol
public TradeBankModel symbol(String symbol)
-
getSymbol
@Nullable public String getSymbol()
The trade symbol the pricing is related to. Format is asset-counter_asset, e.g., BTC-USD.- Returns:
- symbol
-
setSymbol
public void setSymbol(String symbol)
-
side
public TradeBankModel side(String side)
-
getSide
@Nullable public String getSide()
The direction of the trade; one of buy or sell.- Returns:
- side
-
setSide
public void setSide(String side)
-
state
public TradeBankModel state(String state)
-
getState
@Nullable public String getState()
The state of the trade; one of storing, pending, cancelled, completed, settling, or failed.- Returns:
- state
-
setState
public void setState(String state)
-
failureCode
public TradeBankModel failureCode(String failureCode)
-
getFailureCode
@Nullable public String getFailureCode()
The failure code for failed trades; one of non_sufficient_funds, unsupported, limit_exceeded, expired_quote, or market_volatility.- Returns:
- failureCode
-
getFailureCode_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<String> getFailureCode_JsonNullable()
-
setFailureCode_JsonNullable
public void setFailureCode_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> failureCode)
-
setFailureCode
public void setFailureCode(String failureCode)
-
receiveAmount
public TradeBankModel receiveAmount(BigInteger receiveAmount)
-
getReceiveAmount
@Nullable public BigInteger getReceiveAmount()
The amount to be received in base units of the currency: currency is \"asset\" for buy and \"counter_asset\" for sell.- Returns:
- receiveAmount
-
setReceiveAmount
public void setReceiveAmount(BigInteger receiveAmount)
-
deliverAmount
public TradeBankModel deliverAmount(BigInteger deliverAmount)
-
getDeliverAmount
@Nullable public BigInteger getDeliverAmount()
The amount to be delivered in base units of the currency: currency is \"counter_asset\" for buy and \"asset\" for sell.- Returns:
- deliverAmount
-
setDeliverAmount
public void setDeliverAmount(BigInteger deliverAmount)
-
fee
public TradeBankModel fee(BigInteger fee)
-
getFee
@Nullable public BigInteger getFee()
The fee associated with the trade. Denominated in \"counter_asset\" base units- Returns:
- fee
-
setFee
public void setFee(BigInteger fee)
-
referenceTradeGuid
public TradeBankModel referenceTradeGuid(String referenceTradeGuid)
-
getReferenceTradeGuid
@Nullable public String getReferenceTradeGuid()
The guid of the related trade. Only present on `exit` trades.- Returns:
- referenceTradeGuid
-
getReferenceTradeGuid_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<String> getReferenceTradeGuid_JsonNullable()
-
setReferenceTradeGuid_JsonNullable
public void setReferenceTradeGuid_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> referenceTradeGuid)
-
setReferenceTradeGuid
public void setReferenceTradeGuid(String referenceTradeGuid)
-
createdAt
public TradeBankModel createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
ISO8601 datetime the record was created at.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
updatedAt
public TradeBankModel updatedAt(OffsetDateTime updatedAt)
-
getUpdatedAt
@Nullable public OffsetDateTime getUpdatedAt()
ISO8601 datetime the record was last updated at.- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(OffsetDateTime updatedAt)
-
labels
public TradeBankModel labels(List<String> labels)
-
addLabelsItem
public TradeBankModel addLabelsItem(String labelsItem)
-
getLabels
@Nullable public List<String> getLabels()
The labels associated with the trade.- Returns:
- labels
-
getLabels_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<List<String>> getLabels_JsonNullable()
-
setLabels_JsonNullable
public void setLabels_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<String>> labels)
-
-