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.jsonfile 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.1.0.tar.gz
(22.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lime_trader_sdk-0.1.0.tar.gz.
File metadata
- Download URL: lime_trader_sdk-0.1.0.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/3.10.0-1062.el7.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3d1d41d62122282ac111bdf11aa4c2d615fd3e44d81c6fd276bf9e8aa527720
|
|
| MD5 |
056996d1d534f48431bc22d6af8df228
|
|
| BLAKE2b-256 |
05254ae1ac8f073e5fcd2f21ccdd492c9512cdf4f6d9d8a9f681b99e21a0f7ff
|
File details
Details for the file lime_trader_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lime_trader_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 36.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/3.10.0-1062.el7.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97cee7955cda85a527d691a19d912cf61840ebd8f90ffcf76564c5ba9f7f0327
|
|
| MD5 |
fea32422710063d3626a98d21df8e1ae
|
|
| BLAKE2b-256 |
312f79dde856914f0a624ee921fa275f3531ad06219463e294d0ec7a3c04f7e6
|