Orangepill Docs
  • Getting Started
    • Introduction
  • Orangepill API
    • Overview
    • Realms and Admins
    • Identities and Users
    • Persons and Companies
    • Messaging Channels
    • Digital Assets
    • Custom Digital Assets
    • Virtual Currencies
    • Ramp Accounts
    • Deposit Accounts
    • Virtual Accounts
    • Aliases
    • Withdrawal
    • Transactions
    • Payment gateways
    • Payouts
    • KYC
  • SmartApps
    • Payment Request
      • Payment Request v1.0
    • Forwarding Transactions
    • Blockchain Deposits
    • Accept Blockchain Payments
    • Orderbook
    • Exchange Rates
  • WebSocket Subscriptions
  • Extensions
    • Infobip People CDP
  • On Ramps and Off Ramps
  • Integrations
    • Infobip Exchange
  • Tutorials
    • Conversational Wallet
    • Crypto Payments Processor
      • Project Setup
      • Merchants Onboarding
      • Process Payment
      • Withdraw Revenue
      • Build Reports
      • Automatic Revenue Fees
    • Cryptocurrency Exchange
    • Simple ETH Wallet
  • Orangepill API Reference
Powered by GitBook
On this page
  • Get sources
  • Get price

Was this helpful?

  1. SmartApps

Exchange Rates

Use Apps.Rate to get exchange rates for assets pair.

Use Apps.Rate to retrive price for asset pair and amount. You can retrieve exchange rate from various sources.

Get sources

You can retrieve a list of available exchange rate sources.

echo 'get exchange rate sources'

curl --location --request GET 'https://api.orangepill.cloud/v1/apps/rate/sources' \
--header 'x-api-key: AXVubzpwQDU1dzByYM==' \
--header 'Content-Type: application/json'

In response you will get a list of exchange rate sources as an Array.

[
    "default", "bitstamp"
]

Use default source to get exchange rate for FIAT-FIAT pairs.

Get price

You must provide exchange rate source.

echo 'get exchange rate USD 100.10 to BTC from Bitstamp'

curl --location --request GET 'https://api.orangepill.cloud/v1/apps/rate/bitstamp/btc/usd/100.10' \
--header 'x-api-key: AXVubzpwQDU1dzByYM==' \
--header 'Content-Type: application/json'

In response you will get exchange rate.

0.00233

PreviousOrderbookNextWebSocket Subscriptions

Last updated 10 months ago

Was this helpful?