GhostyCash docs
  • 🔥Integrations
  • API Reference
    • Currency
    • Price
    • Create
    • Status
  • Widget / iFrame Integration
Powered by GitBook
On this page
  1. API Reference

Price

This API is for getting ghosty exchange price quotes.

GET /price

Get the price for swapping from one currency to another for a given amount.

Params

Name
Type
Description

amount_from*

number

Amount to swap from

currency_from*

string

Currency symbol to swap from

currency_to*

string

Currency symbol to swap to

is_anonym

boolean

Anonymous transaction flag

fixed

boolean

True for fixed rate, False for Float rate

Response

{
  "code": 200,
  "message": "success",
  "data": {
    "amount_from": 1,
    "amount_to": 19.252289963377326,
    "min_amount": 0.0008099332291520209,
    "max_amount": 6734.719414969767
  }
}
{
  "message": "error",
  "code": 400
}
PreviousCurrencyNextCreate

Last updated 11 months ago