Recommend this page to a friend! |
A simple API client, written with PHP for btcturk.com.
BtcTurk is a cryptocurrency exchange operating in Turkey. Offers crypto trading service. There are various crypto services available.
For additional information about API visit https://docs.btcturk.com/
BtcTurk API Terms of Service
The preferred way to install this extension is through composer.
Either run
$ composer require slvler/btckturk-api
or add
"slvler/btckturk-api": "^1.0"
use slvler\BtcTurkApi\BtcTurkClient;
$client = new BtcTurkClient();
You can use exchangeinfo endpoint for all tradable pairs and their quantity or price scales.
$data = $client->exchange()->getList();
Using the pairSymbol parameter, you can send a request for a single pair.
$data = $client->ticker()->getPair('BTCUSDT');
currency parameter can be used for all symbol pairs.
$data = $client->ticker()->getCurrency('usdt');
Get a list of all open orders for a product.
$data = $client->orderBook()->getOrderBook('BTCUSDT', ['limit' => 10]);
Gets a list the latest trades for a product.
$data = $client->trades()->getTrades('BTCUSDT', ['last' => 10]);
open, high, low, close, volume, total and average information can be viewed with OHLC enpoint.
$data = $client->ohlcs()->getOhlcs('BTCUSDT', ['from' => 1638316800, 'to' => 1639526400]);
For more information you can check our Authentication V1 article. All asset information can be viewed with the Account Balance endpoint.
$data = $client->balance()->getBalances();
For more information you can check our Authentication V1 article. 6 parameters can be used to access user transactions.
$data = $client->transaction()->getTransaction(['type' => 'buy', 'symbol' => 'btc', 'symbol' => 'usdt']);
For more information you can check our Authentication V1 article. 4 parameters can be used to access user fiat transactions.
$data = $client->transaction()->getFiatTransactions(['symbol' => 'try']);
For more information you can check our Authentication V1 article. 4 parameters can be used to access user fiat transactions.
$data = $client->transaction()->getCryptoTransactions(['symbol' => ['btc','etc']]);
List your current open orders. Only open or un-settled orders are returned by default. As soon as an order is no longer open and settled, it will no longer appear in the default request.
$data = $client->orders()->getOpenOrders('BTCTRY');
Retrieve all orders of any status.
$data = $client->orders()->getAllOrders(['pairSymbol' => 'BTCTRY', 'limit' => "1", 'page' => '10']);
Get a single order by orderId. For all transactions related to the private endpoint, you must authorize before sending your request.
$data = $client->orders()->getSingleOrder('61912740');
composer test
The MIT License (MIT). Please see License File for more information.
Classes of Hicri | > | BTCTurk PHP API | > | Download .zip .tar.gz | > | Support forum | > | Blog | > | Latest changes |
|
Groups | Applications | Files |
Groups |
PHP 5 | Classes using PHP 5 specific features | View top rated classes |
Web services | Web data clipping, SOAP or XML-RPC clients and servers | View top rated classes |
Finances | Money, exchanging, taxes and stocks | View top rated classes |
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Files |
File | Role | Description | ||
---|---|---|---|---|
.github (1 directory) | ||||
src (1 file, 4 directories) | ||||
tests (1 file) | ||||
btcturk-logo.png | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
phpunit.xml.dist | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files | / | src |
File | Role | Description | ||
---|---|---|---|---|
Api (10 files) | ||||
Exceptions (1 file) | ||||
Log (1 file) | ||||
Message (1 file) | ||||
BtcTurkClient.php | Class | Class source |
Files | / | src | / | Api |
File | Role | Description |
---|---|---|
Api.php | Class | Class source |
Balance.php | Class | Class source |
Exchange.php | Class | Class source |
Ohlcs.php | Class | Class source |
OrderBook.php | Class | Class source |
Orders.php | Class | Class source |
Setting.php | Class | Class source |
Ticker.php | Class | Class source |
Trades.php | Class | Class source |
Transaction.php | Class | Class source |
Download all files: btcturk-api.tar.gz btcturk-api.zip NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
|
Files |
File | Role | Description | ||
---|---|---|---|---|
.github (1 directory) | ||||
src (1 file, 4 directories) | ||||
tests (1 file) | ||||
btcturk-logo.png | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
phpunit.xml.dist | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files | / | src |
File | Role | Description | ||
---|---|---|---|---|
Api (10 files) | ||||
Exceptions (1 file) | ||||
Log (1 file) | ||||
Message (1 file) | ||||
BtcTurkClient.php | Class | Class source |
Files | / | src | / | Api |
File | Role | Description |
---|---|---|
Api.php | Class | Class source |
Balance.php | Class | Class source |
Exchange.php | Class | Class source |
Ohlcs.php | Class | Class source |
OrderBook.php | Class | Class source |
Orders.php | Class | Class source |
Setting.php | Class | Class source |
Ticker.php | Class | Class source |
Trades.php | Class | Class source |
Transaction.php | Class | Class source |
Download all files: btcturk-api.tar.gz btcturk-api.zip NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
|