SDK for CryptoDock's remote API. Includes an semantic API interface, a Strategy Wrapper, and a Backtest Wrapper. The SDK is mean to be leveraged with each strategy bootstrapped from the CryptoDock desktop iOS app interface. All strategy trading and backtesting is managed through the desktop interface, as well.
Project description
CryptoDock Python SDK
CryptoDock SDK is a Python package used alongside the CryptoDock desktop iOS app, the CryptoDock remote API.
When bootstrapping a trading strategy in the CryptoDock desktop app the SDK is copied into the target local directory for your use in strategy development. It communicates with the remote API to pull historic and current trading data from multiple exchanges.
Additionally the SDK provides a Strategy Wrapper and Backtest Layer that is managed from the CryptoDock desktop interface.
Using this method we can normalize the structures of data from across the exchanges, run comprehensive and adaptable backtest, and provide a semantic interface, allowing for a much more efficient strategy development and research process.
Installation
To install the SDK run: pip install cryptodock-sdk
, or pip install cryptodock-sdk==0.0.1
This package will not work unless used alongside CryptoDock.
Usage
Import Package(s)
from cryptodock import CryptoDockSdk
from cryptodock import CryptoDockApi, CryptoDockStrategy, CryptoDockBacktest
Initialize SDK
full_sdk = CryptoDockSdk()
full_sdk.Api.Local.get_products(exchanges="coinbasepro")
full_sdk.Strategy
full_sdk.Backtest(<your_strategy>)
api = CryptoDockApi(base=<base_url>, port=<port>, version=<api_version>)
api.Local.get_exchanges()
api.CoinbasePro.get_trade_histories('BTC-USDT')
YourStrategy(CryptoDockStrategy)
backtest = CryptoDockBacktest(YourStrategy)
backtest.run_test(data)
History
- Initial Release
- Integrating backtest and strategy wrapper, not just api sdk
Credits
- Company: ©2019 The Launch
- Author: Daniel Griffiths
- Role: Founder and Engineer
- Project: ©2020 CryptoDock
License
MIT Licence ©2020 Daniel Griffiths
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for cryptodock_sdk-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3afb01e818e9f75ad35040de44c7c786fae8286386e71e8abd4cfe46bfc02f0a |
|
MD5 | 1033ea164b981c4e09d6e9391b9cd916 |
|
BLAKE2b-256 | 81f1b0a731202403234aa50af4091db4993eeaf2652c10935294e25d25380a69 |