Name | lime-trader-sdk JSON |
Version |
0.3.5
JSON |
| download |
home_page | |
Summary | Python wrapper for Lime Trader REST API (https://docs.lime.co/trader/) |
upload_time | 2023-12-29 16:10:45 |
maintainer | |
docs_url | None |
author | Lime Financial |
requires_python | >=3.10,<4.0 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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
```
2. Create `credentials.json` file with next content:
```json
{
"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"
}
```
3. Copy next code to your python script to create client and get account balances:
```python
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!
Raw data
{
"_id": null,
"home_page": "",
"name": "lime-trader-sdk",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Lime Financial",
"author_email": "support@lime.co",
"download_url": "https://files.pythonhosted.org/packages/a9/4d/a6e1f66e9a4840bba23c1e5fba3651de6b03a80b484f005cd918b5aee06e/lime_trader_sdk-0.3.5.tar.gz",
"platform": null,
"description": "# Lime-Trader-SDK\n\nQuick example:\n\n1. Install lime-trader-sdk\n\n```\n$ pip install lime-trader-sdk\n```\n\nIf you use Poetry, you can install it by running:\n\n```\n$ poetry add lime-trader-sdk\n```\n\n2. Create `credentials.json` file with next content:\n\n```json\n{\n \"username\": \"<your_username>\",\n \"password\": \"<your_password>\",\n \"client_id\": \"<client_id>\",\n \"client_secret\": \"<client_secret>\",\n \"grant_type\": \"password\",\n \"base_url\": \"https://api.lime.co\",\n \"auth_url\": \"https://auth.lime.co\"\n}\n```\n\n3. Copy next code to your python script to create client and get account balances:\n\n```python\nimport pprint\n\nfrom lime_trader import LimeClient\n\nclient = LimeClient.from_file(file_path=\"credentials.json\")\nbalances = client.account.get_balances()\npprint.pprint(balances)\n```\n\n\nFor more information, check out the docs!",
"bugtrack_url": null,
"license": "",
"summary": "Python wrapper for Lime Trader REST API (https://docs.lime.co/trader/)",
"version": "0.3.5",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7a7c971ee96148c32c0e52c730bb055000245b99ecf33841f271a49f85e69aaa",
"md5": "8c86b2d63f3d57b2ce6500d6fe8686e2",
"sha256": "4588fabc77b9e852d0a61b2a9abda569180ed958bd82579709e8a912da52643c"
},
"downloads": -1,
"filename": "lime_trader_sdk-0.3.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8c86b2d63f3d57b2ce6500d6fe8686e2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10,<4.0",
"size": 34634,
"upload_time": "2023-12-29T16:10:43",
"upload_time_iso_8601": "2023-12-29T16:10:43.948250Z",
"url": "https://files.pythonhosted.org/packages/7a/7c/971ee96148c32c0e52c730bb055000245b99ecf33841f271a49f85e69aaa/lime_trader_sdk-0.3.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a94da6e1f66e9a4840bba23c1e5fba3651de6b03a80b484f005cd918b5aee06e",
"md5": "f34e941e400e536a522b8f960176813d",
"sha256": "ea148b2612f1f3497d7c19f2decfce1cc3153470735d96ac313de1fa2a1a437c"
},
"downloads": -1,
"filename": "lime_trader_sdk-0.3.5.tar.gz",
"has_sig": false,
"md5_digest": "f34e941e400e536a522b8f960176813d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10,<4.0",
"size": 21699,
"upload_time": "2023-12-29T16:10:45",
"upload_time_iso_8601": "2023-12-29T16:10:45.675255Z",
"url": "https://files.pythonhosted.org/packages/a9/4d/a6e1f66e9a4840bba23c1e5fba3651de6b03a80b484f005cd918b5aee06e/lime_trader_sdk-0.3.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-29 16:10:45",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "lime-trader-sdk"
}