buyingAsset method
Sets the asset being bought (counter asset). See: Order books
Implementation
OrderBookRequestBuilder buyingAsset(Asset asset) {
queryParameters.addAll({"buying_asset_type": asset.type});
if (asset is AssetTypeCreditAlphaNum) {
AssetTypeCreditAlphaNum creditAlphaNumAsset = asset;
queryParameters.addAll({"buying_asset_code": creditAlphaNumAsset.code});
queryParameters
.addAll({"buying_asset_issuer": creditAlphaNumAsset.issuerId});
}
return this;
}