A simple SDK for backpack exchange
Project description
Backpack Exchange SDK
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. 🛠️
Project details
Release history Release notifications | RSS feed
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 backpack_exchange_sdk-0.2.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32f8d3d30cff924e4761a8c2f83b3f88e7f57319fe9e27f2c2e5fd2d3ff495a2 |
|
MD5 | 0c84f8ffbad0c10830aea0e9528eaa72 |
|
BLAKE2b-256 | bc2a99c5bed27807889b6b62e2bbb6bf6ca54bb277bdbd13ab7201beb1bfa23d |
Hashes for backpack_exchange_sdk-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fd366dcf72177cb4ac399b3659304f648d918d93f7f03e16ec3d6f0453b7b45 |
|
MD5 | 3ec2beeb46e2ea70a8ab5376addaf6fc |
|
BLAKE2b-256 | 09183b3fc14c6c3c0230e6f3b9c9d69738f6be9338655dcc399b04707e5f33cd |