Name | Type | Description | Notes |
---|---|---|---|
RefId | Pointer to string | The idempotence ID for order creation. Can be reused if the order has been closed for more than 24 hours. | [optional] |
Side | OrderSide | ||
Market | Market | ||
Type | OrderType | ||
BaseAmount | Pointer to string | The base currency amount for any limit order or the exact amount to sell for a market sell order. | [optional] |
Price | Pointer to string | The quote price. | [optional] |
QuoteAmount | Pointer to string | The quote currency amount of purchase for a market buy order. | [optional] |
Metadata | Pointer to map[string]string | Metadata to store on the quote and created order. Up to 6 key/value pairs may be stored, with each key and value at most 100 characters. | [optional] |
AwaitFillMillis | Pointer to int64 | The amount of time to wait for the order to fill, in milliseconds. When `await_fill_millis` is set to a non-zero value, the Create Order call does not return immediately on order creation. Instead, the call blocks until either: 1. The order has filled completely 2. The time `await_fill_millis` has elapsed The maximum wait timeout is 10 seconds (10000 milliseconds). | [optional] |
TimeInForce | Pointer to TimeInForce | [optional] | |
ExpirationDate | Pointer to string | The date the order will expire if not completed when specified time in force is GTT. Format is a unix timestamp in milliseconds (13-digits) UTC (total milliseconds that have elapsed since January 1st, 1970 UTC). | [optional] |
IdentityId | Pointer to string | The end user that requests the trade. This field must be used in conjunction with `identity_account_id`, otherwise the order is rejected. Depending on your integration type, `identity_id` and `identity_account_id` may be required. | [optional] |
IdentityAccountId | Pointer to string | The account under which this order is placed. The provided identity must be allowed to trade on behalf of this account. This field must be used in conjunction with `identity_id`, otherwise the order is rejected. Depending on your integration type, `identity_account_id` and `identity_id` may be required. | [optional] |
StopPrice | Pointer to string | [optional] | |
RecipientProfileId | Pointer to string | The profileId that will receive settled currency (base for buy orders, quote for sell orders). | [optional] |
SelfMatchPreventionId | Pointer to string | The string field used to prevent matching against an opposite side order submitted by the same Crypto Brokerage customer. If this field is not submitted, an order that matches against another order submitted by the same customer will cancel the original resting order. Up to 36 characters are supported. This field requires additional permissions only available to certain accounts. Reach out to your Paxos Representative for more information. | [optional] |
func NewCreateOrderRequest(side OrderSide, market Market, type_ OrderType, ) *CreateOrderRequest
NewCreateOrderRequest instantiates a new CreateOrderRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewCreateOrderRequestWithDefaults() *CreateOrderRequest
NewCreateOrderRequestWithDefaults instantiates a new CreateOrderRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *CreateOrderRequest) GetRefId() string
GetRefId returns the RefId field if non-nil, zero value otherwise.
func (o *CreateOrderRequest) GetRefIdOk() (*string, bool)
GetRefIdOk returns a tuple with the RefId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateOrderRequest) SetRefId(v string)
SetRefId sets RefId field to given value.
func (o *CreateOrderRequest) HasRefId() bool
HasRefId returns a boolean if a field has been set.
func (o *CreateOrderRequest) GetSide() OrderSide
GetSide returns the Side field if non-nil, zero value otherwise.
func (o *CreateOrderRequest) GetSideOk() (*OrderSide, bool)
GetSideOk returns a tuple with the Side field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateOrderRequest) SetSide(v OrderSide)
SetSide sets Side field to given value.
func (o *CreateOrderRequest) GetMarket() Market
GetMarket returns the Market field if non-nil, zero value otherwise.
func (o *CreateOrderRequest) GetMarketOk() (*Market, bool)
GetMarketOk returns a tuple with the Market field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateOrderRequest) SetMarket(v Market)
SetMarket sets Market field to given value.
func (o *CreateOrderRequest) GetType() OrderType
GetType returns the Type field if non-nil, zero value otherwise.
func (o *CreateOrderRequest) GetTypeOk() (*OrderType, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateOrderRequest) SetType(v OrderType)
SetType sets Type field to given value.
func (o *CreateOrderRequest) GetBaseAmount() string
GetBaseAmount returns the BaseAmount field if non-nil, zero value otherwise.
func (o *CreateOrderRequest) GetBaseAmountOk() (*string, bool)
GetBaseAmountOk returns a tuple with the BaseAmount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateOrderRequest) SetBaseAmount(v string)
SetBaseAmount sets BaseAmount field to given value.
func (o *CreateOrderRequest) HasBaseAmount() bool
HasBaseAmount returns a boolean if a field has been set.
func (o *CreateOrderRequest) GetPrice() string
GetPrice returns the Price field if non-nil, zero value otherwise.
func (o *CreateOrderRequest) GetPriceOk() (*string, bool)
GetPriceOk returns a tuple with the Price field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateOrderRequest) SetPrice(v string)
SetPrice sets Price field to given value.
func (o *CreateOrderRequest) HasPrice() bool
HasPrice returns a boolean if a field has been set.
func (o *CreateOrderRequest) GetQuoteAmount() string
GetQuoteAmount returns the QuoteAmount field if non-nil, zero value otherwise.
func (o *CreateOrderRequest) GetQuoteAmountOk() (*string, bool)
GetQuoteAmountOk returns a tuple with the QuoteAmount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateOrderRequest) SetQuoteAmount(v string)
SetQuoteAmount sets QuoteAmount field to given value.
func (o *CreateOrderRequest) HasQuoteAmount() bool
HasQuoteAmount returns a boolean if a field has been set.
func (o *CreateOrderRequest) GetMetadata() map[string]string
GetMetadata returns the Metadata field if non-nil, zero value otherwise.
func (o *CreateOrderRequest) GetMetadataOk() (*map[string]string, bool)
GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateOrderRequest) SetMetadata(v map[string]string)
SetMetadata sets Metadata field to given value.
func (o *CreateOrderRequest) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (o *CreateOrderRequest) GetAwaitFillMillis() int64
GetAwaitFillMillis returns the AwaitFillMillis field if non-nil, zero value otherwise.
func (o *CreateOrderRequest) GetAwaitFillMillisOk() (*int64, bool)
GetAwaitFillMillisOk returns a tuple with the AwaitFillMillis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateOrderRequest) SetAwaitFillMillis(v int64)
SetAwaitFillMillis sets AwaitFillMillis field to given value.
func (o *CreateOrderRequest) HasAwaitFillMillis() bool
HasAwaitFillMillis returns a boolean if a field has been set.
func (o *CreateOrderRequest) GetTimeInForce() TimeInForce
GetTimeInForce returns the TimeInForce field if non-nil, zero value otherwise.
func (o *CreateOrderRequest) GetTimeInForceOk() (*TimeInForce, bool)
GetTimeInForceOk returns a tuple with the TimeInForce field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateOrderRequest) SetTimeInForce(v TimeInForce)
SetTimeInForce sets TimeInForce field to given value.
func (o *CreateOrderRequest) HasTimeInForce() bool
HasTimeInForce returns a boolean if a field has been set.
func (o *CreateOrderRequest) GetExpirationDate() string
GetExpirationDate returns the ExpirationDate field if non-nil, zero value otherwise.
func (o *CreateOrderRequest) GetExpirationDateOk() (*string, bool)
GetExpirationDateOk returns a tuple with the ExpirationDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateOrderRequest) SetExpirationDate(v string)
SetExpirationDate sets ExpirationDate field to given value.
func (o *CreateOrderRequest) HasExpirationDate() bool
HasExpirationDate returns a boolean if a field has been set.
func (o *CreateOrderRequest) GetIdentityId() string
GetIdentityId returns the IdentityId field if non-nil, zero value otherwise.
func (o *CreateOrderRequest) GetIdentityIdOk() (*string, bool)
GetIdentityIdOk returns a tuple with the IdentityId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateOrderRequest) SetIdentityId(v string)
SetIdentityId sets IdentityId field to given value.
func (o *CreateOrderRequest) HasIdentityId() bool
HasIdentityId returns a boolean if a field has been set.
func (o *CreateOrderRequest) GetIdentityAccountId() string
GetIdentityAccountId returns the IdentityAccountId field if non-nil, zero value otherwise.
func (o *CreateOrderRequest) GetIdentityAccountIdOk() (*string, bool)
GetIdentityAccountIdOk returns a tuple with the IdentityAccountId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateOrderRequest) SetIdentityAccountId(v string)
SetIdentityAccountId sets IdentityAccountId field to given value.
func (o *CreateOrderRequest) HasIdentityAccountId() bool
HasIdentityAccountId returns a boolean if a field has been set.
func (o *CreateOrderRequest) GetStopPrice() string
GetStopPrice returns the StopPrice field if non-nil, zero value otherwise.
func (o *CreateOrderRequest) GetStopPriceOk() (*string, bool)
GetStopPriceOk returns a tuple with the StopPrice field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateOrderRequest) SetStopPrice(v string)
SetStopPrice sets StopPrice field to given value.
func (o *CreateOrderRequest) HasStopPrice() bool
HasStopPrice returns a boolean if a field has been set.
func (o *CreateOrderRequest) GetRecipientProfileId() string
GetRecipientProfileId returns the RecipientProfileId field if non-nil, zero value otherwise.
func (o *CreateOrderRequest) GetRecipientProfileIdOk() (*string, bool)
GetRecipientProfileIdOk returns a tuple with the RecipientProfileId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateOrderRequest) SetRecipientProfileId(v string)
SetRecipientProfileId sets RecipientProfileId field to given value.
func (o *CreateOrderRequest) HasRecipientProfileId() bool
HasRecipientProfileId returns a boolean if a field has been set.
func (o *CreateOrderRequest) GetSelfMatchPreventionId() string
GetSelfMatchPreventionId returns the SelfMatchPreventionId field if non-nil, zero value otherwise.
func (o *CreateOrderRequest) GetSelfMatchPreventionIdOk() (*string, bool)
GetSelfMatchPreventionIdOk returns a tuple with the SelfMatchPreventionId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateOrderRequest) SetSelfMatchPreventionId(v string)
SetSelfMatchPreventionId sets SelfMatchPreventionId field to given value.
func (o *CreateOrderRequest) HasSelfMatchPreventionId() bool
HasSelfMatchPreventionId returns a boolean if a field has been set.