SDK for CryptoDock's remote API. Includes an semantic API interface, Strategy Wrapper and Backtest Wrapper. The SDK is meant to be leveraged with strategies bootstrapped from the CryptoDock desktop interface. Strategy trading and backtesting is managed through the desktop app interface.
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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d386457bff2141b8b16444d8c38ccff06a2166a2a441377a6a6a6d73f4f3f82 |
|
MD5 | c47229f0a4a23c0263442ebf68735259 |
|
BLAKE2b-256 | 19fc9eecd5a86323b354c6ae8d05491bda3fed3425ae6d5cf5406bad6e3d8e61 |