Stellar PHP SDK API Documentation

LiquidityPoolPriceResponse

Represents a price as a rational number for liquidity pools

Stores price as a fraction with numerator (n) and denominator (d). The price value equals n/d.

Tags
see
LiquidityPoolResponse

For the parent liquidity pool details

since
1.0.0

Table of Contents

Methods

fromJson()  : LiquidityPoolPriceResponse
getD()  : int
Gets the denominator of the price fraction
getN()  : int
Gets the numerator of the price fraction
loadFromJson()  : void

Methods

loadFromJson()

protected loadFromJson(array<string|int, mixed> $json) : void
Parameters
$json : array<string|int, mixed>

        
On this page

Search results