Layer 231
OnrampQuoteObj
Price quote of an on-ramp provider for buying cryptocurrency.
constructor
onrampQuote#7a8011e9 base_currency:string base_amount:string crypto_currency:string crypto_amount:string crypto_price:string fee_amount:string extra_fee_amount:string network_fee_amount:string total_amount:string payment_method:string expires_date:int = OnrampQuote;
Parameters
| Name | Type | Description |
|---|---|---|
| BaseCurrency | string | Fiat currency |
| BaseAmount | string | Amount in fiat currency |
| CryptoCurrency | string | Cryptocurrency |
| CryptoAmount | string | Amount of cryptocurrency to receive |
| CryptoPrice | string | Price of one unit of the cryptocurrency |
| FeeAmount | string | Provider fee |
| ExtraFeeAmount | string | Additional fees |
| NetworkFeeAmount | string | Blockchain network fee |
| TotalAmount | string | Total amount to pay in fiat currency |
| PaymentMethod | string | Payment method |
| ExpiresDate | int | When the quote expires |
Returns
OnrampQuoteGogram Example
// Creating OnrampQuoteObj constructor obj := &tg.OnrampQuoteObj{ BaseCurrency: "example", BaseAmount: "example", CryptoCurrency: "example", CryptoAmount: "example", CryptoPrice: "example", FeeAmount: "example", // ... more required fields }