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
Metadata
Release files for finterion 0.8.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| finterion-0.8.9.tar.gz | 12.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| finterion-0.8.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.9 kB
Release files / finterion-0.8.9.tar.gz
| Download URL | finterion-0.8.9.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d1939b7650e930e687aec776cbf8ceb26e83bd9d83e786601feb692f4ccc746
|
|
BLAKE2b-256 checksum How to use checksums |
2ce281fedcaafeec663b03da7ad610cfdb0b0e812952edcd1a8e96444ad64e15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.3 Linux/6.11.0-1018-azure
|
Release files / finterion-0.8.9-py3-none-any.whl
| Download URL | finterion-0.8.9-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c65ddf8ac11bd378a94aa338d5cbd44052bb7631d83332c980e4ee3e73b4003
|
|
BLAKE2b-256 checksum How to use checksums |
c2c1921f88b32a3206a97a0eaa818561fd14053c6c25cc0368540b8829ffeb79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.3 Linux/6.11.0-1018-azure
|