BTCTurk API - Python Wrapper
btcturkapi-python is a wrapper library built around Btcturk's REST api implementation.
It provides more abstract version of REST Client for traders using Btcturk as a cryptocurrency platform.
Documentation
Check out the documentation for learning how to use this library and further reference
Table of Contents
Features
- Monitor cryptocurrency prices.
- Place buy, sell orders with stop, limit, or market methods.
- List and cancel open orders.
- Get crypto/fiat transaction history.
Quickstart
In order to use this library for your projects, you can checkout installation and usage sections
Requirements
- BTCTurk API Credentials (For Authentication Necessary Operations)
https://www.btcturk.com/ApiAccess
You can go to link above and create your api credentials.
Installation
You can install this library via pip.
It is the best practice using a virtual environment for your project, keep that in mind.
Run this command through terminal:
pip install btcturk-api
Since the project's current version doesn't have support for websockets and any advanced features, dependencies are simple and you should not encounter any installation error.
Usage
After installing the library, just import the client and you are good to go. You can use any feature btcturk api provides without dealing with preparing requests, handling responses etc.
from btcturk_api.client import Client
You can use public endpoints without providing an api key/secret pair.
>>> my_client = Client()
>>> my_client.get_server_time()
{'serverTime': 1613292018131, 'serverTime2': '2021-02-14T08:40:18.1308832+00:00'}
If you have an api key/secret pair, you can use account endpoints and trading operations
>>> my_client = Client(api_key='<Your Api Key>', api_secret='<Your Api Secret>')
>>> my_client.get_account_balance()
[
{
'asset': 'TRY',
'assetname': 'Türk Lirası',
'balance': '100.00',
'locked': '0',
'free': '100.00',
'orderFund': '0',
'requestFund': '0',
'precision': 2
},
{...}
]
License
You can use this library in your personal projects free of charge. Detailed information is in LICENSE.txt file.
Contact
Miraç Baydemir - omermirac59@gmail.com
Project Link: https://github.com/outlier-1/btcturkapi-python/
Donation
Bitcoin Address - '34FSjtdwTSB21uVDcptgJ8kPHHimMSCGxq'
Metadata
Release files for btcturk-api 1.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| btcturk_api-1.8.1.tar.gz | 11.1 kB | Without provenance | Details for btcturk_api-1.8.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| btcturk_api-1.8.1-py3-none-any.whl | Python 3 | none | any | Details for btcturk_api-1.8.1-py3-none-any.whl |
Total release size: 24.0 kB
Release files / btcturk_api-1.8.1.tar.gz
| Download URL | btcturk_api-1.8.1.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca0ed3e15b84d37249de7877411805cfafb18fe73a2223463d8e7ec6a2d2f9d4
|
|
BLAKE2b-256 checksum How to use checksums |
27692afc918dcadfe1cb194509210d76d07a6329c3f8c9d9b25db8f1dbc7592c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9
|
Release files / btcturk_api-1.8.1-py3-none-any.whl
| Download URL | btcturk_api-1.8.1-py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6d355eab0e6a4ea2d5f226c2f1f7cbee1de3d8d3814da7b183fe397ae092dbb
|
|
BLAKE2b-256 checksum How to use checksums |
a11f7ae62cd788b626583bd76d45a77827b2fdc44d0420f86e0cec2b123f4e7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9
|
Security for btcturk-api 1.8.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.