Python bindings for the Absurdia API
Project description
Official Absurdia Bindings for Python
A Python library for Absurdia's API.
Install
You can install this package by using the pip tool and installing:
$ pip install absurdia
Signing up to Absurdia backtesting
Sign up for Absurdia at https://app.absurdia.markets/signup.
Using the the package
Create a new agent in (your dashboard)[https://app.absurdia.markets/agents] and download the credential file. Use the agent token with the client as in the example blow.
from absurdia import Client
# Create client
client = Client('<Your Agent Token>')
# Get your account
account = client.accounts.current()
Alternatively, use the environment variable ABSURDIA_TOKEN
, or put the credential file in the same directory as your Python script.
Import a Freqtrade backtest
Freqtrade backtests are run using its CLI. This Python library also comes with a CLI that can work together with Freqtrade's commands. First, add a token to authenticate your agent:
$ absurdia login --token '<Your Agent Token>'
Once authenicated, simply append absurdia backtest --
to your Freqtrade backtesting command. For example:
$ absurdia backtest --freqtrade backtesting --strategy AwesomeStrategy --timeframe 1m
License
Licensed under the BSD 3 license, see LICENSE.
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
File details
Details for the file absurdia-0.0.6.tar.gz
.
File metadata
- Download URL: absurdia-0.0.6.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54c1be15510a7fdba8106312f05626e9474b37f8da799ea6292574154a4b4dfa |
|
MD5 | 9d9bfad00a1c8b9cc8ebc4b2fb08784e |
|
BLAKE2b-256 | 6163ef4121b4620e6003164ee770467703a00392a913ed9e5e4ac279e7f2419c |
File details
Details for the file absurdia-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: absurdia-0.0.6-py3-none-any.whl
- Upload date:
- Size: 22.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11ac51374ef9e1c34fb6d62a838358082d30b1f5440d8103508dc37dbd2fb5bf |
|
MD5 | c5d8575f22b8cf74fe1dccc05cd46825 |
|
BLAKE2b-256 | d772aa06ad14fd3602d15f8056e0037c32c4bfe31253987f9cdefc4096a53bcb |