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

Uploaded Source

Built Distribution

lime_trader_sdk-0.3.10-py3-none-any.whl (36.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lime_trader_sdk-0.3.10.tar.gz
  • Upload date:
  • Size: 23.0 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.10.tar.gz
Algorithm Hash digest
SHA256 462ae37c7019b4a2e8997bbbed3967c0e442d217f3c3bb399cde5f0354634011
MD5 cf813487cc503482f4d9e5fa1335dc3d
BLAKE2b-256 5a6bb451d1e24391a6d4659c8aa1cb9c4090eacbbbde1ac378eba57b4b582b52

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lime_trader_sdk-0.3.10-py3-none-any.whl
  • Upload date:
  • Size: 36.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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 783f9d49dcda18c83b2620596d129387d0825dbf2d9625d0ab19765f59fb317c
MD5 af77444a5c80ae34c5d58c10a3121b55
BLAKE2b-256 f61e94d527584ec6c33af12cdbad870328d0ade317a77fd962d0d4272f3236f4

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