Skip to main content

Python bindings for the Absurdia API

Project description

Official Absurdia Bindings for Python

PyPI

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

absurdia-0.0.6.tar.gz (17.7 kB view hashes)

Uploaded Source

Built Distribution

absurdia-0.0.6-py3-none-any.whl (22.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page