Official python client for ELTYER
Project description
Official ELTYER Python Client
The ELTYER python client is a python library that can be used by your investing algorithm. With this client your can connect your algorithm to the ELTYER platform.
Installation
You can install the client directly using pip:
pip install eltyer
Usage
Example usage
from eltyer import Client, OrderStatus
# Create a client and configure it with your algorithm api keys from ELTYER
client = Client()
# ****Configuration options****
# Configuration with dict
client.config.from_dict({"API_KEY": "<YOUR_API_KEY>"})
# Configuration with attribute setter
client.config.API_KEY = "<YOUR_API_KEY>"
# Configuration with environment variable 'ELTYER_API_KEY'
client.config.from_env()
# ****Configuration options****
# ****Available Operations****
# Start the ELTYER client
client.start()
# Get the api key context/environment
client.get_environment()
# Create a limit order
limit_order = client.create_limit_order(
target_symbol="btc", amount=1, price=5, side="BUY",
)
# Create a market order (only sell market orders are supported)
market_order = client.create_market_order(target_symbol="btc", amount=1)
# Get positions
positions = client.get_positions()
position = client.get_position("btc")
# Get orders
orders = client.get_orders()
orders = client.get_orders(
target_symbol="btc", status=OrderStatus.PENDING.value
)
# Get the portfolio
portfolio = client.get_portfolio()
# Stop the client
client.stop()
Documentation
You can find the official documentation at our documentation website
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eltyer-0.3.3.tar.gz.
File metadata
- Download URL: eltyer-0.3.3.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f10d3d5112da7eb985a7651438ce5e627155f96c5dc8dc6449719fab252eaf4
|
|
| MD5 |
2ab52ed867042906c6e68e53ae384a0f
|
|
| BLAKE2b-256 |
9d873c71dc5172678c1a09a78d787acea983e6b180c1f5a0af9d96065958918e
|
File details
Details for the file eltyer-0.3.3-py3-none-any.whl.
File metadata
- Download URL: eltyer-0.3.3-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47f260f421875b2243043bec709e43f4ac014264a176aac751ee9c052c780cf8
|
|
| MD5 |
90a743111f27f0aa92e289c1cf3b8b49
|
|
| BLAKE2b-256 |
344ea334ae12498973d51da566e624cccfc51729e5a7f4fc3ffc085994119c32
|