https://github.com/sann05/python-currencycom
Currency.com Exchange API python implementation for automated trading
https://github.com/sann05/python-currencycom
cryptocurrency cryptocurrency-exchanges stock-trading trading trading-api
Last synced: about 1 year ago
JSON representation
Currency.com Exchange API python implementation for automated trading
- Host: GitHub
- URL: https://github.com/sann05/python-currencycom
- Owner: sann05
- License: mit
- Created: 2020-03-02T14:56:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T13:49:16.000Z (about 2 years ago)
- Last Synced: 2025-05-01T08:16:19.814Z (about 1 year ago)
- Topics: cryptocurrency, cryptocurrency-exchanges, stock-trading, trading, trading-api
- Language: Python
- Size: 53.7 KB
- Stars: 35
- Watchers: 3
- Forks: 15
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Welcome to the python-currencycom
This is an unofficial Python wrapper for the Currency.com exchange REST API v1.
I am in no way affiliated with Currency.com, use at your own risk.
### Documentation
Please find official documentation by:
https://exchange.currency.com/api
Or Swagger by the link: https://apitradedoc.currency.com/swagger-ui.html#/.
### QuickStart
[Register an account on Currency.com](https://exchange.currency.com/trading/signup)
[Create an API Key with correct permissions](https://exchange.currency.com/trading/platform/settings)
```
pip install python-currencycom
```
Let's retrieve tradable symbols on the market
```python
from pprint import pprint
from currencycom.client import Client
client = Client('API_KEY', 'SECRET_KEY')
# Exchange info contains various info including tradable symbols
exchange_info = client.get_exchange_info()
tradable_symbols = [x['symbol'] for x in exchange_info['symbols']]
pprint(tradable_symbols,
indent=2)
```
For more check out [the documentation](https://exchange.currency.com/api) and [Swagger](https://apitradedoc.currency.com/swagger-ui.html#/).