Skip to main content

Official python client for Finterion

Project description

Tests Build

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


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.8.8.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

finterion-0.8.8-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file finterion-0.8.8.tar.gz.

File metadata

  • Download URL: finterion-0.8.8.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.5.0-1016-azure

File hashes

Hashes for finterion-0.8.8.tar.gz
Algorithm Hash digest
SHA256 27fc33639f97a32095136c3dfd52aaa0e28fbcb008506d8648464f147e0c7392
MD5 7d59bad1c8e8efc4b7867482b23d17bd
BLAKE2b-256 de139474c9f84238956a9517aca1b5ebabe1f540afb9e88d6b8da6c141dadb45

See more details on using hashes here.

File details

Details for the file finterion-0.8.8-py3-none-any.whl.

File metadata

  • Download URL: finterion-0.8.8-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.5.0-1016-azure

File hashes

Hashes for finterion-0.8.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3ccfe07bbbb866df4f19d61a56d6ef9aa94965ce4edbb09e7b303a608795c61c
MD5 a0c24076ff47d2caa581dc234ae94328
BLAKE2b-256 4a7f8655d395c4465c10f1533f85db06efa286600da2b7c766aa415b9fb40cc9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page