Class: Privy::Models::KrakenEmbedCreateCustomOrderInput

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/kraken_embed_create_custom_order_input.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(action:, name:, trigger:, user_id:) ⇒ Object

Some parameter documentations has been truncated, see Privy::Models::KrakenEmbedCreateCustomOrderInput for more details.

Request body for creating a custom order.

Parameters:



# File 'lib/privy/models/kraken_embed_create_custom_order_input.rb', line 29

Instance Attribute Details

#actionPrivy::Models::KrakenEmbedCustomOrderAction

Trade action for a custom order.



10
# File 'lib/privy/models/kraken_embed_create_custom_order_input.rb', line 10

required :action, -> { Privy::KrakenEmbedCustomOrderAction }

#nameString

Returns:

  • (String)


15
# File 'lib/privy/models/kraken_embed_create_custom_order_input.rb', line 15

required :name, String

#triggerPrivy::Models::KrakenEmbedCustomOrderTrigger

Price trigger for a custom order. The order executes when base_asset/quote_asset rate meets the condition against target_price.



22
# File 'lib/privy/models/kraken_embed_create_custom_order_input.rb', line 22

required :trigger, -> { Privy::KrakenEmbedCustomOrderTrigger }

#user_idString

Returns:

  • (String)


27
# File 'lib/privy/models/kraken_embed_create_custom_order_input.rb', line 27

required :user_id, String