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.7.tar.gz (21.8 kB view hashes)

Uploaded Source

Built Distribution

lime_trader_sdk-0.3.7-py3-none-any.whl (34.7 kB view hashes)

Uploaded Python 3

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