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

Uploaded Source

Built Distribution

lime_trader_sdk-0.3.12-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lime_trader_sdk-0.3.12.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/3.10.0-1062.el7.x86_64

File hashes

Hashes for lime_trader_sdk-0.3.12.tar.gz
Algorithm Hash digest
SHA256 1f475d539364d9133614bcf4db851e35edfee30b585979bb677be0c0259d9716
MD5 e438c4b05c63c776ddb3eab218260529
BLAKE2b-256 c0b97df937338c3c189544d4b3f4e7b5a10ca8fe416c0958cbd2bd790ea9262d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lime_trader_sdk-0.3.12-py3-none-any.whl
Algorithm Hash digest
SHA256 ccf5923194dbd6ec454bc376fba09ca124c622679ef8cff1bc6027234e4f3342
MD5 9c031b789ba97838de0df0869269fd31
BLAKE2b-256 91662afa8f80da6f7c6567e4d14745e3aeb309dc94a23bbaa09c26bb1b7a8596

See more details on using hashes here.

Supported by

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