Skip to main content

Python bindings for the Flox indicator library

Project description

flox-py

Python bindings for the FLOX trading framework.

Install

pip install flox-py

Quick Start

import flox_py as flox
import numpy as np

# Indicators
ema = flox.ema(close, 50)
rsi = flox.rsi(close, 14)
atr = flox.atr(high, low, close, 14)

# Backtest engine
engine = flox.Engine(initial_capital=100_000, fee_rate=0.0001)
engine.load_bars_df(timestamps, opens, highs, lows, closes, volumes)
signals = flox.make_signals(timestamps, sides, quantities)
stats = engine.run(signals)

# 1000 backtests in parallel
results = engine.run_batch([signals_1, signals_2, ...])

Modules

Module Description
Engine Backtest engine with batch execution
Indicators EMA, SMA, RSI, MACD, ATR, Bollinger, ADX, Stochastic, CCI, VWAP, CVD, and more
Aggregators Time, tick, volume, range, renko, Heikin-Ashi bars
Order Books N-level, L3, cross-exchange CompositeBookMatrix
Profiles Footprint bars, volume profile, market profile
Positions Position tracking with FIFO/LIFO/average cost basis
Replay Binary log reader/writer, market data recorder
Segment Ops Merge, split, export, validate, partition data
Optimizer Permutation test, bootstrap CI, correlation

All compute-heavy operations release the GIL for true parallelism.

Full API reference at flox-foundation.github.io/flox/reference/python.

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

flox_py-0.5.2.tar.gz (29.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

flox_py-0.5.2-cp313-cp313-win_amd64.whl (421.9 kB view details)

Uploaded CPython 3.13Windows x86-64

flox_py-0.5.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (792.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

flox_py-0.5.2-cp313-cp313-macosx_14_0_arm64.whl (463.6 kB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

flox_py-0.5.2-cp312-cp312-win_amd64.whl (421.9 kB view details)

Uploaded CPython 3.12Windows x86-64

flox_py-0.5.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (792.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

flox_py-0.5.2-cp312-cp312-macosx_14_0_arm64.whl (463.5 kB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

flox_py-0.5.2-cp311-cp311-win_amd64.whl (420.6 kB view details)

Uploaded CPython 3.11Windows x86-64

flox_py-0.5.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (791.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

flox_py-0.5.2-cp311-cp311-macosx_14_0_arm64.whl (458.2 kB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

flox_py-0.5.2-cp310-cp310-win_amd64.whl (420.2 kB view details)

Uploaded CPython 3.10Windows x86-64

flox_py-0.5.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (790.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

flox_py-0.5.2-cp310-cp310-macosx_14_0_arm64.whl (457.0 kB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

File details

Details for the file flox_py-0.5.2.tar.gz.

File metadata

  • Download URL: flox_py-0.5.2.tar.gz
  • Upload date:
  • Size: 29.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for flox_py-0.5.2.tar.gz
Algorithm Hash digest
SHA256 28c348e5806ab0b498ec3ab822be81f0ca522e2a2076273e8b0a08a2a040e116
MD5 df1be7af2024bbd9dd6832c0bbde5d00
BLAKE2b-256 e03943d5ca70a309350c316659ab36835d0100653d1b2cfe19c005b344837ab6

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.2.tar.gz:

Publisher: python-wheels.yml on FLOX-Foundation/flox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flox_py-0.5.2-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: flox_py-0.5.2-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 421.9 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for flox_py-0.5.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3a2f0daf8a5d65b52954c29f39084a8e6592fc29be2bd3ac6fad3bf03baa53cb
MD5 1973a64ece942c19e916fe672c57691e
BLAKE2b-256 85d73437d9d9bfe0c1b107b84900a678d9640b0265811fac494e3f70f4cfed6a

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.2-cp313-cp313-win_amd64.whl:

Publisher: python-wheels.yml on FLOX-Foundation/flox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flox_py-0.5.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for flox_py-0.5.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 68d583ce9ac857199c6c749f148c0a48cc20a4a267b91b7de55c5a282f371e27
MD5 9a5ae5d766feec8df96dca36eae39a12
BLAKE2b-256 79b650596930195573e8328dc85aa16a5da9e5c752695e833f4873f704bf715f

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: python-wheels.yml on FLOX-Foundation/flox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flox_py-0.5.2-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for flox_py-0.5.2-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 be8f111e4e6d1f2d0e1deb6a39e30e3b305f55fc9ab316aa017473219da53455
MD5 8af539e70f70706107d4fd7844f7c87a
BLAKE2b-256 cc1f715c315b0ca02ae8d397aae3e5095f623dc6c33e9aee7a3423a24eebe17e

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.2-cp313-cp313-macosx_14_0_arm64.whl:

Publisher: python-wheels.yml on FLOX-Foundation/flox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flox_py-0.5.2-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: flox_py-0.5.2-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 421.9 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for flox_py-0.5.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d85e2bad2ddf7298e65083ccdca132431dc31a05fb55adac944092cf54bb6e2a
MD5 55ea833b387df157311f241078fc21cc
BLAKE2b-256 c87193ea1025219e6202a254a1c3f29d0cf11bcc4bcf823d0989a8371d07a425

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.2-cp312-cp312-win_amd64.whl:

Publisher: python-wheels.yml on FLOX-Foundation/flox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flox_py-0.5.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for flox_py-0.5.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 068c5ca961cfad53144b517af3924673da78a2098a7dc6712ea1de2d591d8c86
MD5 8de250bf425e15e97c452c679b6f2944
BLAKE2b-256 65e0f47d9a23bcdd813aa4f7241c2187b9c05d56582738b7378db60bee2d73dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: python-wheels.yml on FLOX-Foundation/flox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flox_py-0.5.2-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for flox_py-0.5.2-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 18459da49e44efe8e3ae854f1f688403c448063fef35d982986b94c2a7f5fa51
MD5 f4d48264c19de288e68b3d96b999bc96
BLAKE2b-256 e7e20a12a27bac3195330ad0dd1d5e990b39b453c141221166c8332fd245dde3

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.2-cp312-cp312-macosx_14_0_arm64.whl:

Publisher: python-wheels.yml on FLOX-Foundation/flox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flox_py-0.5.2-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: flox_py-0.5.2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 420.6 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for flox_py-0.5.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e858195528fdddea84c18c1f2119cdd4a51894687d3ed593e2b6040ece20f14c
MD5 fa51dce25a85c43076c717f7f9d81787
BLAKE2b-256 18c3222dc6cdf6f2409336e7907ff09fe6ef4cba41c879e618b4535e693e4922

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.2-cp311-cp311-win_amd64.whl:

Publisher: python-wheels.yml on FLOX-Foundation/flox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flox_py-0.5.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for flox_py-0.5.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fa1994f25986746152f804977dfb3626dde265e8f495ef3f9fcb4e75efd65654
MD5 47cb3ee1c534870228e55ddf25df50dc
BLAKE2b-256 3ec1a931ad99150f8bc37b46c7d89386035bbd724a02e03721439d1cb1b235ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: python-wheels.yml on FLOX-Foundation/flox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flox_py-0.5.2-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for flox_py-0.5.2-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 c0ecad63a752f3f0b995dce184407a20f92c8f03a9dd9afd7dd02594e80a1550
MD5 fbf55328d1ca99ae1d5a929a99e8ff76
BLAKE2b-256 f652f585017e156876c48917279fb9e26545cbe02d6d6576b318ab722247c5fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.2-cp311-cp311-macosx_14_0_arm64.whl:

Publisher: python-wheels.yml on FLOX-Foundation/flox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flox_py-0.5.2-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: flox_py-0.5.2-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 420.2 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for flox_py-0.5.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 538f24d2d84740325ac3ad3124e37429dfae693d1797312d732c92fc1d0811ee
MD5 5bd75c9673973947ac867f41c9b9c65b
BLAKE2b-256 dc473b3507fdca71a355c1a1d9926c5e256c3d542dcaa5f8945c4125ef542d7e

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.2-cp310-cp310-win_amd64.whl:

Publisher: python-wheels.yml on FLOX-Foundation/flox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flox_py-0.5.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for flox_py-0.5.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9c4df0065d8df6fd66882785099146c3b8868a6ec174e76eca63077fb85a2dd7
MD5 190f9b49ae5e7810ea5e3bdc440635dc
BLAKE2b-256 b5d506fccb63a86ae06ffd29643a338fecff470a4aa787115db1a20cf4970e03

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: python-wheels.yml on FLOX-Foundation/flox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flox_py-0.5.2-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for flox_py-0.5.2-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 503af5e057c94cfc43773e06002948d792c0999e366aa595709989f643d20dec
MD5 1ce639789ae59bfac7370bdd03904ce8
BLAKE2b-256 55276ce3b2a65a367f837464f5753a319bb168d4111d255a593ecc0eeade98b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.2-cp310-cp310-macosx_14_0_arm64.whl:

Publisher: python-wheels.yml on FLOX-Foundation/flox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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