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 investing algorithm. With this client your can connect your algorithm to the finterion platform.
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
finterion-0.2.tar.gz
(11.3 kB
view hashes)
Built Distribution
finterion-0.2-py3-none-any.whl
(14.1 kB
view hashes)