Official python client for Finterion
Project description
Official Finterion Python Client
The Finterion python client is a python library that can be used by your trading bots/quantitative trading strategies that are registered at the Finterion platform. It provides a simple and easy-to-use interface for interacting with the Finterion API.
Installation
You can install the client directly using pip:
pip install finterion
Usage
Example usage
from finterion import Finterion, OrderStatus, OrderSide, OrderType
# Create a client and configure it with your algorithm api keys from Finterion
client = Finterion(api_key="<YOUR_API_KEY>")
# ****Available Operations****
# Get algorithm model
model = client.get_algorithm_model()
# Create a limit order
limit_order = client.create_limit_order(
target_symbol="btc", amount=1, price=5, order_side="BUY",
)
# Create a market order (only sell market orders are supported)
market_order = client.create_market_order(
target_symbol="btc", amount=1, order_side="SELL"
)
# Get positions
positions = client.get_positions(symbol="btc")
position = client.get_position(positions[0].id)
# Get orders
orders = client.get_orders()
orders = client.get_orders(
target_symbol="btc",
status=OrderStatus.PENDING,
order_type=OrderType.LIMIT,
order_side=OrderSide.BUY
)
order = client.get_order(orders[0].id)
# Get the portfolio
portfolio = client.get_portfolio()
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 finterion-0.8.9.tar.gz.
File metadata
- Download URL: finterion-0.8.9.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.3 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d1939b7650e930e687aec776cbf8ceb26e83bd9d83e786601feb692f4ccc746
|
|
| MD5 |
e33c07049da16fae24fedf9cc66f8117
|
|
| BLAKE2b-256 |
2ce281fedcaafeec663b03da7ad610cfdb0b0e812952edcd1a8e96444ad64e15
|
File details
Details for the file finterion-0.8.9-py3-none-any.whl.
File metadata
- Download URL: finterion-0.8.9-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.3 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c65ddf8ac11bd378a94aa338d5cbd44052bb7631d83332c980e4ee3e73b4003
|
|
| MD5 |
65d5dce7a317f94ec8dc08411e863cd9
|
|
| BLAKE2b-256 |
c2c1921f88b32a3206a97a0eaa818561fd14053c6c25cc0368540b8829ffeb79
|