Get Tickers
Gets snapshot information about the last trade (tick), best bid/ask and 24h volume.
Using the pairSymbol parameter, you can send a request for a single pair.
Example: https://api.btcturk.com/api/v2/ticker?pairSymbol=BTCUSDT
  • If pairSymbol is not set, ticker for all pairs will be returned in a json array.

GET Currency

  • currency parameter can be used for all symbol pairs.
Example: https://api.btcturk.com/api/v2/ticker/currency?symbol=usdt
You can use this query to see all USDT, TRY or BTC pairs.
get
https://api.btcturk.com
/api/v2/ticker
Pair
get
https://api.btcturk.com
/api/v2/ticker/currency
Currency

Code Example

C#
PHP
Python
GoLang
Node.js
// You can download ApiClient .net core complete library from github https://github.com/BTCTrader/broker-api-csharp-v2
var configuration = new ConfigurationBuilder().AddJsonFile("appsettings.json").Build();
var publicKey = configuration["publicKey"];
var privateKey = configuration["privateKey"];
var resourceUrl = configuration["resourceUrl"];
var apiClientV1 = new ApiClientV1(publicKey, privateKey, resourceUrl);
var tickerList = apiClientV1.GetTicker("BTCTRY");
if (tickerList.Result.Success)
{
foreach (var ticker in tickerList.Result.Data)
{
Console.WriteLine(ticker.ToString());
}
}
else
{
Console.WriteLine(tickerList.Result.ToString());
}
<?php
$base = "https://api.btcturk.com";
$method = "/api/v2/ticker?pairSymbol=BTCTRY";
$uri = $base.$method;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $uri);
curl_setopt($ch, CURLOPT_HTTP_VERSION, "CURL_HTTP_VERSION_1_2");
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
if (curl_errno($ch)) {
print_r(curl_error($ch));
}
$answer = json_decode($result);
print_r($answer);p
import time, base64, hmac, hashlib, requests, json
base = "https://api.btcturk.com"
method = "/api/v2/ticker?pairSymbol=BTCTRY"
uri = base+method
result = requests.get(url=uri)
result = result.json()
print(json.dumps(result, indent=2))
uri := "https://api.btcturk.com/api/v2/ticker"
request, _ := http.NewRequest("GET", uri, nil)
request.Header.Add("Content-Type", "application/json")
response, _ := http.DefaultClient.Do(request)
defer response.Body.Close()
body, _ := ioutil.ReadAll(response.Body)
fmt.Println(response)
fmt.Println(string(body))
const base = 'https://api.btcturk.com'
const method = '/api/v2/ticker'
const uri = base+method;
const options = {method: 'GET', headers: {'Content-type': 'application/json'}};
fetch(uri, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
Copy link
On this page
GET Currency
get
Pair
get
Currency
Code Example