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.2.0.tar.gz (22.3 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.2.0-py3-none-any.whl (36.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lime_trader_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 22.3 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

Hashes for lime_trader_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 150f598efd8171ca5a15663e4b45903f21ecf4d2b9b216fb7d952bd4244cf480
MD5 5b33c65beb5034a10f40b149f39ef504
BLAKE2b-256 4f5d19c56187513026afbf8f7ce44b949ce106050491d83c7c68c1df055aed4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lime_trader_sdk-0.2.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

Hashes for lime_trader_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9233dd9643fd4d0457f511fea9482bbfa34dc7b46aa0ef0fbf0c38b06553461f
MD5 c0f1d3b543a9b26a3e102ee8b8262c10
BLAKE2b-256 159ad3dc89f44982919e0ed5189f6a96175e9fb4f9e59a6c81586aab6adbfc98

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