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, bitcoin, find, #initialize, #save!, to_create_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
529 530 531 |
# File 'lib/counterparty/resources.rb', line 529 def backward_asset @backward_asset end |
#backward_quantity ⇒ Object
(integer): The quantity of the specified backward asset
532 533 534 |
# File 'lib/counterparty/resources.rb', line 532 def backward_quantity @backward_quantity end |
#forward_asset ⇒ Object
(string): The asset exchanged FROM the first order to the second order
523 524 525 |
# File 'lib/counterparty/resources.rb', line 523 def forward_asset @forward_asset end |
#forward_quantity ⇒ Object
(integer): The quantity of the specified forward asset
526 527 528 |
# File 'lib/counterparty/resources.rb', line 526 def forward_quantity @forward_quantity end |
#tx0_address ⇒ Object
(string): The address that issued the first (earlier) order
505 506 507 |
# File 'lib/counterparty/resources.rb', line 505 def tx0_address @tx0_address end |
#tx0_block_index ⇒ Object
(integer): The Bitcoin block index of the first order
499 500 501 |
# File 'lib/counterparty/resources.rb', line 499 def tx0_block_index @tx0_block_index end |
#tx0_expiration ⇒ Object
(integer): The number of blocks over which the first order was valid
502 503 504 |
# File 'lib/counterparty/resources.rb', line 502 def tx0_expiration @tx0_expiration end |
#tx0_hash ⇒ Object
(string): The Bitcoin transaction hash of the first order
496 497 498 |
# File 'lib/counterparty/resources.rb', line 496 def tx0_hash @tx0_hash end |
#tx0_index ⇒ Object
(integer): The Bitcoin transaction index of the first (earlier) order
493 494 495 |
# File 'lib/counterparty/resources.rb', line 493 def tx0_index @tx0_index end |
#tx1_address ⇒ Object
(string): The address that issued the second order
517 518 519 |
# File 'lib/counterparty/resources.rb', line 517 def tx1_address @tx1_address end |
#tx1_block_index ⇒ Object
(integer): The block index of the second order
514 515 516 |
# File 'lib/counterparty/resources.rb', line 514 def tx1_block_index @tx1_block_index end |
#tx1_expiration ⇒ Object
(integer): The number of blocks over which the second order was valid
520 521 522 |
# File 'lib/counterparty/resources.rb', line 520 def tx1_expiration @tx1_expiration end |
#tx1_hash ⇒ Object
(string): The transaction hash of the second order
511 512 513 |
# File 'lib/counterparty/resources.rb', line 511 def tx1_hash @tx1_hash end |
#tx1_index ⇒ Object
(integer): The transaction index of the second (matching) order
508 509 510 |
# File 'lib/counterparty/resources.rb', line 508 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
536 537 538 |
# File 'lib/counterparty/resources.rb', line 536 def validity @validity end |