{"id":16411625,"url":"https://github.com/slvler/btcturk-api","last_synced_at":"2025-03-23T06:31:07.328Z","repository":{"id":108625830,"uuid":"609617450","full_name":"slvler/btcturk-api","owner":"slvler","description":"PHP REST API client for btcturk.com","archived":false,"fork":false,"pushed_at":"2024-10-20T09:36:36.000Z","size":58,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T18:21:35.620Z","etag":null,"topics":["altcoins","blockchain","btcturk","btcturk-api","btcturk-client","btcturk-php","cryptocurrency","php","rest-api","rest-client","restful-api"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slvler.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-04T18:09:03.000Z","updated_at":"2024-10-20T09:36:00.000Z","dependencies_parsed_at":"2023-12-22T12:25:30.555Z","dependency_job_id":"5d2b0c4e-8f34-4c44-9d54-6124e54351aa","html_url":"https://github.com/slvler/btcturk-api","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slvler%2Fbtcturk-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slvler%2Fbtcturk-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slvler%2Fbtcturk-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slvler%2Fbtcturk-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slvler","download_url":"https://codeload.github.com/slvler/btcturk-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245066496,"owners_count":20555402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["altcoins","blockchain","btcturk","btcturk-api","btcturk-client","btcturk-php","cryptocurrency","php","rest-api","rest-client","restful-api"],"created_at":"2024-10-11T06:46:02.381Z","updated_at":"2025-03-23T06:31:06.987Z","avatar_url":"https://github.com/slvler.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP API client for btcturk.com\n\n[![tests](https://github.com/slvler/btcturk-api/actions/workflows/tests.yml/badge.svg)](https://github.com/slvler/btcturk-api/actions/workflows/tests.yml)\n[![Latest Stable Version](https://poser.pugx.org/slvler/btcturk-api/v)](https://packagist.org/packages/slvler/btcturk-api)\n[![Latest Unstable Version](https://poser.pugx.org/slvler/btcturk-api/v/unstable)](https://packagist.org/packages/slvler/btcturk-api) \n[![License](https://poser.pugx.org/slvler/btcturk-api/license)](https://packagist.org/packages/slvler/btcturk-api)\n[![Total Downloads](https://poser.pugx.org/slvler/btcturk-api/downloads)](https://packagist.org/packages/slvler/btcturk-api)\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n![image info](./art/btcturk-logo.png)\n\n\u003cbr\u003e\n\u003cbr\u003e\n\nA simple API client, written with PHP for [btcturk.com](https://btckturk.com).\n\nBtcTurk is a cryptocurrency exchange operating in Turkey. Offers crypto trading service. There are various crypto services available.\n\nFor additional information about API visit [https://docs.btcturk.com/](https://docs.btcturk.com/)\n\nBtcTurk API [Terms of Service](https://pro.btcturk.com/en/legal-information/terms-of-use)\n\n## Requirements\n\n* PHP \u003e= 7.2\n* ext-json\n\n## Installation\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```bash\n$ composer require slvler/btckturk-api\n```\nor add\n\n```json\n\"slvler/btckturk-api\": \"^1.0\"\n```\n\n## Basic usage\n\n\n### Example\n```php  \nuse slvler\\BtcTurkApi\\BtcTurkClient;\n\n$client = new BtcTurkClient();\n```\n\n## Available methods\n\n### Exchange\n\n#### [exchange-info](https://docs.btcturk.com/public-endpoints/exchange-info)\n\nYou can use exchangeinfo endpoint for all tradable pairs and their quantity or price scales.\n\n```php\n$data = $client-\u003eexchange()-\u003egetList();\n```\n\n### Tickers\n\n#### [Pair](https://docs.btcturk.com/public-endpoints/ticker#pair)\n\nUsing the pairSymbol parameter, you can send a request for a single pair.\n\n```php\n$data = $client-\u003eticker()-\u003egetPair('BTCUSDT');\n```\n\n#### [currency](https://docs.btcturk.com/public-endpoints/ticker#currency)\n\ncurrency parameter can be used for all symbol pairs.\n\n```php\n$data = $client-\u003eticker()-\u003egetCurrency('usdt');\n```\n\n### OrderBook\n\n#### [orderbook](https://docs.btcturk.com/public-endpoints/orderbook)\n\nGet a list of all open orders for a product.\n\n```php\n$data = $client-\u003eorderBook()-\u003egetOrderBook('BTCUSDT', ['limit' =\u003e 10]);\n```\n\n### Trades\n\n#### [trades](https://docs.btcturk.com/public-endpoints/trades)\n\nGets a list the latest trades for a product.\n\n```php\n$data = $client-\u003etrades()-\u003egetTrades('BTCUSDT', ['last' =\u003e 10]);\n```\n\n### OHLC Data\n\n#### [OHLC](https://docs.btcturk.com/public-endpoints/ohcl-data#ohlc-data)\n\nopen, high, low, close, volume, total and average information can be viewed with OHLC enpoint.\n\n```php\n$data = $client-\u003eohlcs()-\u003egetOhlcs('BTCUSDT', ['from' =\u003e 1638316800, 'to' =\u003e 1639526400]);\n```\n\n### Account Balance\n\n#### [Balance](https://docs.btcturk.com/private-endpoints/account-balance)\n\nFor more information you can check our Authentication V1 article. All asset information can be viewed with the Account Balance endpoint.\n\n```php\n$data = $client-\u003ebalance()-\u003egetBalances();\n```\n\n### Transactions\n\n#### [Transactions](https://docs.btcturk.com/private-endpoints/user-transactions)\n\nFor more information you can check our Authentication V1 article. 6 parameters can be used to access user transactions.\n\n```php\n$data = $client-\u003etransaction()-\u003egetTransaction(['type' =\u003e 'buy', 'symbol' =\u003e 'btc', 'symbol' =\u003e 'usdt']);\n```\n\n#### [Fiat Transactions](https://docs.btcturk.com/private-endpoints/get-fiat-transactions)\n\nFor more information you can check our Authentication V1 article. 4 parameters can be used to access user fiat transactions.\n```php\n$data = $client-\u003etransaction()-\u003egetFiatTransactions(['symbol' =\u003e 'try']);\n```\n\n#### [Crypto Transactions](https://docs.btcturk.com/private-endpoints/get-crypto-transactions)\n\nFor more information you can check our Authentication V1 article. 4 parameters can be used to access user fiat transactions.\n```php\n$data = $client-\u003etransaction()-\u003egetCryptoTransactions(['symbol' =\u003e ['btc','etc']]);\n```\n\n### Orders\n\n#### [Open Orders](https://docs.btcturk.com/private-endpoints/open-orders)\n\nList 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.\n\n```php\n$data = $client-\u003eorders()-\u003egetOpenOrders('BTCTRY');\n```\n\n#### [All Orders](https://docs.btcturk.com/private-endpoints/all-orders)\n\nRetrieve all orders of any status.\n\n```php\n$data = $client-\u003eorders()-\u003egetAllOrders(['pairSymbol' =\u003e 'BTCTRY', 'limit' =\u003e \"1\", 'page' =\u003e '10']);\n```\n\n#### [Single Order](https://docs.btcturk.com/private-endpoints/get-single-order)\n\nGet a single order by orderId.  For all transactions related to the private endpoint, you must authorize before sending your request.\n\n```php\n$data = $client-\u003eorders()-\u003egetSingleOrder('61912740');\n```\n\n### Testing\n\n```bash\ncomposer test\n```\n\n## Credits\n\n- [slvler](https://github.com/slvler)\n\n## License\n\nThe MIT License (MIT). Please see [License File](https://github.com/slvler/btcturk-api/blob/main/LICENSE) for more information.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslvler%2Fbtcturk-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslvler%2Fbtcturk-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslvler%2Fbtcturk-api/lists"}