Class: Privy::Models::KrakenEmbedCustomOrderTrigger
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Privy::Models::KrakenEmbedCustomOrderTrigger
- Defined in:
- lib/privy/models/kraken_embed_custom_order_trigger.rb,
sig/privy/models/kraken_embed_custom_order_trigger.rbs
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
- #base_asset ⇒ String
-
#condition ⇒ Symbol, Privy::Models::KrakenEmbedCustomOrderTriggerCondition
Comparison operator for a custom order price trigger.
- #quote_asset ⇒ String
- #target_price ⇒ String
- #type ⇒ Symbol, Privy::Models::KrakenEmbedCustomOrderTrigger::Type
Instance Method Summary collapse
-
#initialize(base_asset:, condition:, quote_asset:, target_price:, type:) ⇒ Object
constructor
Price trigger for a custom order.
- #to_hash ⇒ {
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(base_asset:, condition:, quote_asset:, target_price:, type:) ⇒ Object
Price trigger for a custom order. The order executes when base_asset/quote_asset rate meets the condition against target_price.
|
|
# File 'lib/privy/models/kraken_embed_custom_order_trigger.rb', line 32
|
Instance Attribute Details
#base_asset ⇒ String
9 |
# File 'lib/privy/models/kraken_embed_custom_order_trigger.rb', line 9 required :base_asset, String |
#condition ⇒ Symbol, Privy::Models::KrakenEmbedCustomOrderTriggerCondition
Comparison operator for a custom order price trigger.
15 |
# File 'lib/privy/models/kraken_embed_custom_order_trigger.rb', line 15 required :condition, enum: -> { Privy::KrakenEmbedCustomOrderTriggerCondition } |
#quote_asset ⇒ String
20 |
# File 'lib/privy/models/kraken_embed_custom_order_trigger.rb', line 20 required :quote_asset, String |
#target_price ⇒ String
25 |
# File 'lib/privy/models/kraken_embed_custom_order_trigger.rb', line 25 required :target_price, String |
#type ⇒ Symbol, Privy::Models::KrakenEmbedCustomOrderTrigger::Type
30 |
# File 'lib/privy/models/kraken_embed_custom_order_trigger.rb', line 30 required :type, enum: -> { Privy::KrakenEmbedCustomOrderTrigger::Type } |
Instance Method Details
#to_hash ⇒ {
31 |
# File 'sig/privy/models/kraken_embed_custom_order_trigger.rbs', line 31
def to_hash: -> {
|