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.4.1.tar.gz
(22.5 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.4.1.tar.gz.
File metadata
- Download URL: lime_trader_sdk-0.4.1.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.11.15 Linux/3.10.0-1062.el7.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
738b44322ae1bbc7cc2284924c1fb8470ecee6d8a6a17726cc38c85c72c96914
|
|
| MD5 |
f9e809176daee810eb96db6f6a986f83
|
|
| BLAKE2b-256 |
596ebee78268531dbace7d427eea0677be6e9c9de7d7f83d9aa198d3a40a3bb4
|
File details
Details for the file lime_trader_sdk-0.4.1-py3-none-any.whl.
File metadata
- Download URL: lime_trader_sdk-0.4.1-py3-none-any.whl
- Upload date:
- Size: 37.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.11.15 Linux/3.10.0-1062.el7.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e35386eb891dd5d54e5b0bb77c0586a58aff848bb7f59d7875d28e7aec471b8
|
|
| MD5 |
94315ca06a1a16e93141da7c378b4193
|
|
| BLAKE2b-256 |
934d906897e5b1711d94d09b864aec94fba1db5b32bad89f09acf110e1437043
|