Skip to main content

Python wrapper for Lime Trader REST API (https://docs.lime.co/trader/)

Project description

Lime-Trader-SDK

Quick example:

  1. Install lime-trader-sdk
$ pip install lime-trader-sdk

If you use Poetry, you can install it by running:

$ poetry add lime-trader-sdk
  1. 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"
}
  1. 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


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.4.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lime_trader_sdk-0.3.4-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

Details for the file lime_trader_sdk-0.3.4.tar.gz.

File metadata

  • Download URL: lime_trader_sdk-0.3.4.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.6 Linux/3.10.0-1062.el7.x86_64

File hashes

Hashes for lime_trader_sdk-0.3.4.tar.gz
Algorithm Hash digest
SHA256 401f57a66adfbdb7bde194caf42134329fd3a4614ab660aed7f4687816469c0d
MD5 167c1410c3ca5eefeb453419984643c7
BLAKE2b-256 5cc5d7a664b86aaa8e495ca457933caf4b0e3a8c3686950e927b79a4f05aa882

See more details on using hashes here.

File details

Details for the file lime_trader_sdk-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: lime_trader_sdk-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 34.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.6 Linux/3.10.0-1062.el7.x86_64

File hashes

Hashes for lime_trader_sdk-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0b2f29d5be613a64f1b5c8495e5f29649418c07554c37b6b1bf5559affaead19
MD5 fa8a95998c24f64ab0ca479d9ea36bf3
BLAKE2b-256 5e1d2b8b9c5142585136078b2e66e11322cf9b72149b3b8f5b3d3ef11b61dda8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page