Metadata-Version: 2.1
Name: lime-trader-sdk
Version: 0.3.9
Summary: Python wrapper for Lime Trader REST API (https://docs.lime.co/trader/)
Author: Lime Financial
Author-email: support@lime.co
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: attrs (>=22.2.0,<23.0.0)
Requires-Dist: cattrs (>=22.2.0,<23.0.0)
Requires-Dist: httpx (>=0.25.1,<0.26.0)
Requires-Dist: orjson (>=3.9.10,<4.0.0)
Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
Requires-Dist: rel (>=0.4.8,<0.5.0)
Requires-Dist: requests (>=2.30.0,<3.0.0)
Requires-Dist: websocket-client (>=1.6.4,<2.0.0)
Description-Content-Type: text/markdown

# 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!
