Python wrapper for Lime Trader REST API (https://docs.lime.co/trader/)
Project description
Lime-Trader-SDK
Quick example:
- Install lime-trader-sdk
$ pip install lime-trader-sdk
If you use Poetry, you can install it by running:
$ poetry add lime-trader-sdk
- Create
credentials.json
file with next content:
{
"username": "<your_username>",
"password": "<your_password>",
"client_id": "<client_id>",
"client_secret": "<client_secret>",
"grant_type": "password",
"base_url": "https://api.lime.co",
"auth_url": "https://auth.lime.co"
}
- Copy next code to your python script to create client and get account balances:
import pprint
from lime_trader import LimeClient
client = LimeClient.from_file(file_path="credentials.json")
balances = client.account.get_balances()
pprint.pprint(balances)
For more information, check out the docs!
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
lime_trader_sdk-0.3.6.tar.gz
(21.7 kB
view hashes)
Built Distribution
Close
Hashes for lime_trader_sdk-0.3.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8ff8ff6d97ddcb7113b9038f7fe05835a9820d76820dcc9f7ead01d13675ff2 |
|
MD5 | 70beecbb7b427b75e5770d20c1ccf59a |
|
BLAKE2b-256 | 7dc9443b191080994189d502f15f628c7cc8fb4f2057703b06cfe5768eebc540 |