Struct AmmPoolOffer
The synthetic offer an AMM pool puts beside an order book.
Namespace: Xrpl.Amounts
Assembly: Xrpl.dll
Syntax
public readonly record struct AmmPoolOffer
Constructors
| Edit this page View SourceAmmPoolOffer(XrplAmount, XrplAmount, XrplQuality)
The synthetic offer an AMM pool puts beside an order book.
Declaration
public AmmPoolOffer(XrplAmount In, XrplAmount Out, XrplQuality Quality)
Parameters
| Type | Name | Description |
|---|---|---|
| XrplAmount | In | What the pool takes in. |
| XrplAmount | Out | What the pool pays out. |
| XrplQuality | Quality | The quality the offer ranks at: its own, or the pool's spot price for the largest offer when there is no book, as the engine ranks it. |
Properties
| Edit this page View SourceIn
What the pool takes in.
Declaration
public XrplAmount In { get; init; }
Property Value
| Type | Description |
|---|---|
| XrplAmount |
Out
What the pool pays out.
Declaration
public XrplAmount Out { get; init; }
Property Value
| Type | Description |
|---|---|
| XrplAmount |
Quality
The quality the offer ranks at: its own, or the pool's spot price for the largest offer when there is no book, as the engine ranks it.
Declaration
public XrplQuality Quality { get; init; }
Property Value
| Type | Description |
|---|---|
| XrplQuality |