Giter Club home page Giter Club logo

backpack_exchange_sdk's Introduction

Backpack Exchange SDK

PyPI - Version

The Backpack Exchange SDK provides a convenient interface for interacting with the Backpack Exchange API. It includes two main clients: AuthenticationClient for authenticated endpoints and PublicClient for public endpoints.

Features

  • Authentication Client: Interact with authenticated endpoints for managing capital, historical data, and orders.
  • Public Client: Access public market data, system status, and public trade data.

Installation

The SDK can be installed directly using pip:

pip3 install backpack_exchange_sdk

Alternatively, you can clone the repository and install the SDK manually:

git clone https://github.com/solomeowl/backpack_exchange_sdk.git
cd backpack_exchange_sdk
pip3 install .

Usage

Authentication Client

from backpack_exchange_sdk.authenticated import AuthenticationClient

client = AuthenticationClient('<YOUR_API_KEY>', '<YOUR_SECRET>')

# Get account balances
balances = client.get_balances()
print(balances)

# Request a withdrawal
response = client.request_withdrawal('xxxxaddress', 'Solana', '0,1', 'Sol')
print(response)

Public Client

from backpack_exchange_sdk.public import PublicClient

public_client = PublicClient()

# Get all supported assets
assets = public_client.get_assets()
print(assets)

# Get ticker information for a specific symbol
ticker = public_client.get_ticker('SOL_USDC')
print(ticker)

Documentation

For more detailed information about the API endpoints and their usage, refer to the Backpack Exchange API documentation.

Support

If this SDK has been helpful to you ๐ŸŒŸ and you haven't signed up for Backpack Exchange yet, please consider using the following referral link to register: Register on Backpack Exchange ๐Ÿš€.

Using this referral link is a great way to support this project โค๏ธ, as it helps to grow the community and ensures the continued development of the SDK. ๐Ÿ› ๏ธ

backpack_exchange_sdk's People

Contributors

solomeowl avatar nihow666 avatar sndmndss avatar leechunhao2000 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.