Crypto Exchange Endpoint | D24 Documentation (2024)

The Crypto Exchange endpoint allows you to get the exchange of any cryptocurrency compared against USD or any other local currency

Crypto Exchange Endpoint

GET https://api-stg.directa24.com/v3/exchange_rates/crypto?currency={currency}&amount={amount}&crypto={crypto}

The Crypto Exchange endpoint allows you to get the exchange of any crypto currency compared against USD or any other local currency.

Query Parameters

NameTypeDescription

currency

string

USD or the country's local currency that will be used by the payer

amount

number

Amount in the previously specified currency. Used to calculate the exchange in the cryptocurrency specified below. Default: 1

crypto

string

Cryptocurrency symbol in which the amount will be converted to

Headers

NameTypeDescription

Authorization

string

"Bearer " + Read-Only API Key

Please find all the country and currencies codes in the Countries Specifications section.

Description

The Crypto Exchange Endpoint allows you to convert any amount in USD or Local Currency to the specified Cryptocurrency.

Request

In order to start using the Crypto Exchange endpoint, you need to:

  1. Send the request with GET method.

  2. Specify a valid currency code in the request as QUERY PARAMS.

  3. Specify the amount to convert.* If it's not specified, 1 is assumed.

  4. Specify a valid cryptocurrency symbol that will be converted the amount to.

  5. Send the Authorization header with your read-only API Key as Bearer as follows:

Authorization: Bearer your_read_only_key_here

Example request

curl --location --request GET 'https://api-stg.directa24.com/v3/exchange_rates/crypto?currency=BRL&crypto=USDT' \--header 'Authorization: Bearer your_read_only_key_here'
import java.io.*;import okhttp3.*;public class main { public static void main(String []args) throws IOException{ OkHttpClient client = new OkHttpClient().newBuilder() .build(); Request request = new Request.Builder() .url("https://api-stg.directa24.com/v3/exchange_rates/crypto?currency=BRL&amount=1000&crypto=USDT") .method("GET", null) .addHeader("Authorization", "Bearer your_read_only_key_here") .build(); Response response = client.newCall(request).execute(); System.out.println(response.body().string()); }}
using System;using RestSharp;namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { var client = new RestClient("https://api-stg.directa24.com/v3/exchange_rates/crypto?currency=BRL&amount=1000&crypto=USDT"); client.Timeout = -1; var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer your_read_only_key_here"); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content); } }}
<?php$curl = curl_init();curl_setopt_array($curl, array( CURLOPT_URL => "https://api-stg.directa24.com/v3/exchange_rates/crypto?currency=BRL&amount=1000&crypto=USDT", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array( "Authorization: Bearer your_read_only_key_here" ),));$response = curl_exec($curl);curl_close($curl);echo $response;

Example Response

{ "fx_rate": 5.8829, "converted_amount": 58.829, "fee": 0.64}

Response fields

Field name

Format

Description

fx_rate

Number

Exchange rate of the cryptocurrency against the base currency

converted_amount

Number

Amount in the cryptocurrency specified. Default: 1

fee

Number

Fee for converting the specified amount to the cryptocurrency.

Last updated

Crypto Exchange Endpoint | D24 Documentation (2024)
Top Articles
Terms of Use | Scientific American
Ledger Wallets: What kind of attacks can they sustain? | Ledger
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Energy Healing Conference Utah
Geometry Review Quiz 5 Answer Key
Hobby Stores Near Me Now
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Pearson Correlation Coefficient
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Movies - EPIC Theatres
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Mia Malkova Bio, Net Worth, Age & More - Magzica
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Nfsd Web Portal
Selly Medaline
Latest Posts
Article information

Author: Prof. Nancy Dach

Last Updated:

Views: 5666

Rating: 4.7 / 5 (57 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Prof. Nancy Dach

Birthday: 1993-08-23

Address: 569 Waelchi Ports, South Blainebury, LA 11589

Phone: +9958996486049

Job: Sales Manager

Hobby: Web surfing, Scuba diving, Mountaineering, Writing, Sailing, Dance, Blacksmithing

Introduction: My name is Prof. Nancy Dach, I am a lively, joyous, courageous, lovely, tender, charming, open person who loves writing and wants to share my knowledge and understanding with you.