class Counterparty::Bet

An object that describes a specific bet.

Constants

BEARISH_CFD

Bet Type: Bearish CFD

BULLISH_CFD

Bet Type: Bullish CFD

EQUAL

Bet Type: Equal

LEVERAGE_BASIS

Denominator by which the leverage integer is divided by. It’s effectively a ‘magic’ number that allows us to keep the leverage parameter an integer

NOT_EQUAL

Bet Type: Not Equal

Attributes

bet_type[RW]

(integer): 0 for Bullish CFD, 1 for Bearish CFD, 2 for Equal, 3 for Not Equal

block_index[RW]

(integer): The block index (block number in the block chain)

counterwager_quantity[RW]

(integer): The minimum quantity of XCP to be wagered by the user to bet against the bet issuer, if the other party were to accept the whole thing

deadline[RW]

(integer): The timestamp at which the bet should be decided/settled, in Unix time.

expiration[RW]

(integer): The number of blocks for which the bet should be valid

fee_multiplier[RW]

(integer):

feed_address[RW]

(string): The address with the feed that the bet is to be made on

leverage[RW]

(integer): Leverage, as a fraction of 5040

odds[RW]

(float):

source[RW]

(string): The address that made the bet

target_value[RW]

(float): Target value for Equal/NotEqual bet

tx_hash[RW]

(string): The transaction hash

tx_index[RW]

(integer): The transaction index

validity[RW]

(string): Set to “valid” if a valid bet. Any other setting signifies an invalid/improper bet

wager_quantity[RW]

(integer): The quantity of XCP to wager

wager_remaining[RW]

(integer): The quantity of XCP wagered that is remaining to bet on