Class: Counterparty::OrderMatch
- Inherits:
-
CounterResource
- Object
- CounterResource
- Counterparty::OrderMatch
- Defined in:
- lib/counterparty/resources.rb
Overview
An object that describes a specific occurance of two orders being matched (either partially, or fully)
Instance Attribute Summary collapse
-
#backward_asset ⇒ Object
(string): The asset exchanged FROM the second order to the first order.
-
#backward_quantity ⇒ Object
(integer): The quantity of the specified backward asset.
-
#forward_asset ⇒ Object
(string): The asset exchanged FROM the first order to the second order.
-
#forward_quantity ⇒ Object
(integer): The quantity of the specified forward asset.
-
#tx0_address ⇒ Object
(string): The address that issued the first (earlier) order.
-
#tx0_block_index ⇒ Object
(integer): The Bitcoin block index of the first order.
-
#tx0_expiration ⇒ Object
(integer): The number of blocks over which the first order was valid.
-
#tx0_hash ⇒ Object
(string): The Bitcoin transaction hash of the first order.
-
#tx0_index ⇒ Object
(integer): The Bitcoin transaction index of the first (earlier) order.
-
#tx1_address ⇒ Object
(string): The address that issued the second order.
-
#tx1_block_index ⇒ Object
(integer): The block index of the second order.
-
#tx1_expiration ⇒ Object
(integer): The number of blocks over which the second order was valid.
-
#tx1_hash ⇒ Object
(string): The transaction hash of the second order.
-
#tx1_index ⇒ Object
(integer): The transaction index of the second (matching) order.
-
#validity ⇒ Object
(string): Set to “valid” if a valid order match.
Attributes inherited from CounterResource
#allow_unconfirmed_inputs, #encoding, #fee, #fee_per_kb, #pubkey, #result_attributes
Method Summary
Methods inherited from CounterResource
#==, api_name, find, #initialize, #save!, to_create_request, to_do_request, to_get_request, #to_raw_tx, #to_signed_tx
Constructor Details
This class inherits a constructor from Counterparty::CounterResource
Instance Attribute Details
#backward_asset ⇒ Object
(string): The asset exchanged FROM the second order to the first order
510 511 512 |
# File 'lib/counterparty/resources.rb', line 510 def backward_asset @backward_asset end |
#backward_quantity ⇒ Object
(integer): The quantity of the specified backward asset
513 514 515 |
# File 'lib/counterparty/resources.rb', line 513 def backward_quantity @backward_quantity end |
#forward_asset ⇒ Object
(string): The asset exchanged FROM the first order to the second order
504 505 506 |
# File 'lib/counterparty/resources.rb', line 504 def forward_asset @forward_asset end |
#forward_quantity ⇒ Object
(integer): The quantity of the specified forward asset
507 508 509 |
# File 'lib/counterparty/resources.rb', line 507 def forward_quantity @forward_quantity end |
#tx0_address ⇒ Object
(string): The address that issued the first (earlier) order
486 487 488 |
# File 'lib/counterparty/resources.rb', line 486 def tx0_address @tx0_address end |
#tx0_block_index ⇒ Object
(integer): The Bitcoin block index of the first order
480 481 482 |
# File 'lib/counterparty/resources.rb', line 480 def tx0_block_index @tx0_block_index end |
#tx0_expiration ⇒ Object
(integer): The number of blocks over which the first order was valid
483 484 485 |
# File 'lib/counterparty/resources.rb', line 483 def tx0_expiration @tx0_expiration end |
#tx0_hash ⇒ Object
(string): The Bitcoin transaction hash of the first order
477 478 479 |
# File 'lib/counterparty/resources.rb', line 477 def tx0_hash @tx0_hash end |
#tx0_index ⇒ Object
(integer): The Bitcoin transaction index of the first (earlier) order
474 475 476 |
# File 'lib/counterparty/resources.rb', line 474 def tx0_index @tx0_index end |
#tx1_address ⇒ Object
(string): The address that issued the second order
498 499 500 |
# File 'lib/counterparty/resources.rb', line 498 def tx1_address @tx1_address end |
#tx1_block_index ⇒ Object
(integer): The block index of the second order
495 496 497 |
# File 'lib/counterparty/resources.rb', line 495 def tx1_block_index @tx1_block_index end |
#tx1_expiration ⇒ Object
(integer): The number of blocks over which the second order was valid
501 502 503 |
# File 'lib/counterparty/resources.rb', line 501 def tx1_expiration @tx1_expiration end |
#tx1_hash ⇒ Object
(string): The transaction hash of the second order
492 493 494 |
# File 'lib/counterparty/resources.rb', line 492 def tx1_hash @tx1_hash end |
#tx1_index ⇒ Object
(integer): The transaction index of the second (matching) order
489 490 491 |
# File 'lib/counterparty/resources.rb', line 489 def tx1_index @tx1_index end |
#validity ⇒ Object
(string): Set to “valid” if a valid order match. Any other setting signifies an invalid/improper order match
517 518 519 |
# File 'lib/counterparty/resources.rb', line 517 def validity @validity end |