TradeResponse class Null safety
Represents trades response from the horizon server. When an offer is fully or partially fulfilled, a trade happens. Trades can also be caused by successful path payments, because path payments involve fulfilling offers. See: Trades documentation
Constructors
- TradeResponse(String id, String pagingToken, String ledgerCloseTime, String? offerId, bool baseIsSeller, String? baseAccount, String? baseOfferId, String baseAmount, String baseAssetType, String? baseAssetCode, String? baseAssetIssuer, String? counterAccount, String? counterOfferId, String counterAmount, String counterAssetType, String? counterAssetCode, String? counterAssetIssuer, String tradeType, String? baseLiquidityPoolId, String? counterLiquidityPoolId, int? liquidityPoolFeeBp, Price price, TradeResponseLinks links)
-
TradeResponse.fromJson(Map<
String, dynamic> json) -
factory
Properties
- baseAccount ↔ String?
-
read / write
- baseAmount ↔ String
-
read / write
- baseAsset → Asset
-
read-only
- baseAssetCode ↔ String?
-
read / write
- baseAssetIssuer ↔ String?
-
read / write
- baseAssetType ↔ String
-
read / write
- baseIsSeller ↔ bool
-
read / write
- baseLiquidityPoolId ↔ String?
-
read / write
- baseOfferId ↔ String?
-
read / write
- counterAccount ↔ String?
-
read / write
- counterAmount ↔ String
-
read / write
- counterAsset → Asset
-
read-only
- counterAssetCode ↔ String?
-
read / write
- counterAssetIssuer ↔ String?
-
read / write
- counterAssetType ↔ String
-
read / write
- counterLiquidityPoolId ↔ String?
-
read / write
- counterOfferId ↔ String?
-
read / write
- hashCode → int
-
The hash code for this object.
read-only, inherited
- id ↔ String
-
read / write
- ledgerCloseTime ↔ String
-
read / write
- links ↔ TradeResponseLinks
-
read / write
- liquidityPoolFeeBp ↔ int?
-
read / write
- offerId ↔ String?
-
read / write
- pagingToken ↔ String
-
read / write
- price ↔ Price
-
read / write
- rateLimitLimit ↔ int?
-
read / write, inherited
- rateLimitRemaining ↔ int?
-
read / write, inherited
- rateLimitReset ↔ int?
-
read / write, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- tradeType ↔ String
-
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
setHeaders(
Map< String, String> headers) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited