Skip to main content

SDK for interacting with Avantis trading contracts.

Project description

Welcome to Avantis Trader SDK’s documentation!

Avantis Trader SDK is a powerful and flexible toolkit for trading on the Avantis platform. This documentation will guide you through the installation process, basic usage, and advanced features of the SDK.

📚 Read the Full Documentation Here

Contents:

Introduction

Welcome to the Avantis Trader SDK, a powerful tool designed to interact with the Avantis decentralized exchange (DEX) and leverage its advanced features for trading and market-making in cryptocurrencies, forex, and commodities.

About Avantis

Avantis is at the forefront of decentralized leveraged trading platforms, offering users the ability to take long or short positions in synthetic crypto, forex, and commodities using perpetuals—a financial instrument that provides leverage without an expiration date. With synthetic leverage and a USDC stablecoin liquidity pool, Avantis achieves high capital efficiency, enabling a diverse selection of tradable assets and leverage up to 100x.

The platform also introduces fine-grained risk management for liquidity providers (LPs) through time and risk parameters. This innovation allows any LP to become a sophisticated market maker for a wide range of derivatives, starting with perpetuals.

Read more about Avantis at https://docs.avantisfi.com/.

Purpose of the Avantis Trader SDK

The Avantis Trader SDK is designed to simplify and enhance the experience of interacting with the Avantis DEX. It provides developers and traders with a set of tools to:

  • Access real-time price feeds for supported trading pairs.
  • Retrieve and analyze key parameters for assets, categories, and trading strategies.
  • Integrate live price updates into applications or trading algorithms.
  • Execute trades and manage positions on the Avantis platform.

Whether you are a developer building decentralized finance (DeFi) applications, a trader seeking to automate your strategies, or a market maker looking to optimize your operations, the Avantis Trader SDK offers the functionality you need to succeed in the rapidly evolving world of decentralized trading.

Getting Started

Installation

To get started with the Avantis Trader SDK, follow these steps to install the package:

  1. Ensure you have Python 3.6 or later installed on your system.

  2. Install the SDK using pip:

     pip install avantis-trader-sdk
    

    or

    pip install git+https://github.com/Avantis-Labs/avantis_trader_sdk.git
    

    Alternatively, if you have a local copy of the source:

    git clone https://github.com/yourusername/avantis-trader-sdk.git
    cd avantis-trader-sdk
    pip install .
    
  3. Verify the installation:

    import avantis_trader_sdk
    print(avantis_trader_sdk.__version__)
    

    If the installation was successful, this command should print the version number of the Avantis Trader SDK.

Next Steps

Once you have installed the Avantis Trader SDK, you can start using it to interact with the Avantis platform. Here are some things you might want to do next:

  • Explore the SDK’s features and capabilities.
  • Access real-time price feeds for various trading pairs.
  • Integrate the SDK into your trading algorithms or DeFi applications.

Examples

You can find practical examples and sample code for using the Avantis Trader SDK in our GitHub repository. These examples are designed to help you get started quickly and explore the capabilities of the SDK.

📂 Browse the Examples on GitHub

📚 Read the Full Documentation Here

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

avantis_trader_sdk-0.8.12.tar.gz (8.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

avantis_trader_sdk-0.8.12-py3-none-any.whl (9.1 MB view details)

Uploaded Python 3

File details

Details for the file avantis_trader_sdk-0.8.12.tar.gz.

File metadata

  • Download URL: avantis_trader_sdk-0.8.12.tar.gz
  • Upload date:
  • Size: 8.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for avantis_trader_sdk-0.8.12.tar.gz
Algorithm Hash digest
SHA256 76bf293d341c8cc6f6242f8f4b2bf0df30c59133c677d4c1261a779bb4ff3beb
MD5 a73df66241c3c0d6b48bc6e18834f8ee
BLAKE2b-256 33ddc1d15df348938cd8a03d34e76aea573609212ca2041d7c92b0a508e7d5be

See more details on using hashes here.

File details

Details for the file avantis_trader_sdk-0.8.12-py3-none-any.whl.

File metadata

File hashes

Hashes for avantis_trader_sdk-0.8.12-py3-none-any.whl
Algorithm Hash digest
SHA256 7f7d6159467dc143b68c06aa41edf83bf00d9ae23acc8dbc43145849417d0d83
MD5 0d49f11cb2972f1846c8dbccb8f26fce
BLAKE2b-256 7565e742293f76f30c9b56963209a5de2c9a9c35f8d2f16ca6c9f73f518c0b7f

See more details on using hashes here.

Supported by

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