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.1.tar.gz (24.1 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.1-cp313-cp313-win_amd64.whl (375.7 kB view details)

Uploaded CPython 3.13Windows x86-64

flox_py-0.5.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (710.1 kB view details)

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

flox_py-0.5.1-cp313-cp313-macosx_14_0_arm64.whl (401.1 kB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

flox_py-0.5.1-cp312-cp312-win_amd64.whl (375.7 kB view details)

Uploaded CPython 3.12Windows x86-64

flox_py-0.5.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (710.0 kB view details)

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

flox_py-0.5.1-cp312-cp312-macosx_14_0_arm64.whl (401.1 kB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

flox_py-0.5.1-cp311-cp311-win_amd64.whl (374.6 kB view details)

Uploaded CPython 3.11Windows x86-64

flox_py-0.5.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (705.9 kB view details)

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

flox_py-0.5.1-cp311-cp311-macosx_14_0_arm64.whl (396.0 kB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

flox_py-0.5.1-cp310-cp310-win_amd64.whl (373.9 kB view details)

Uploaded CPython 3.10Windows x86-64

flox_py-0.5.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (704.8 kB view details)

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

flox_py-0.5.1-cp310-cp310-macosx_14_0_arm64.whl (394.8 kB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

File details

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

File metadata

  • Download URL: flox_py-0.5.1.tar.gz
  • Upload date:
  • Size: 24.1 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.1.tar.gz
Algorithm Hash digest
SHA256 cdbae6e89dc421c8832e05a519dc31703a66f4ad82ef0b72d97444c667986976
MD5 723413242b8074f7d3a2f5eebbd86665
BLAKE2b-256 c268a843821b52e6b3aa1fe58bdd5586020fac106be1b4e2988613c560b5ead1

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.1.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.1-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: flox_py-0.5.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 375.7 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.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 82cc3072f03909fdca13b7f3ebba0bb50abc490b676c41bd388f3b015c395bba
MD5 5bb7069ceee736a11fe76bd9c8dc8522
BLAKE2b-256 3ea86c6b4a57d3e936771cefda094da0d08cbae1490dd6c1b7cc11cd2395226f

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.1-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.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for flox_py-0.5.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c9562f834cb103085ccf54fc7aeb9feb614d6737bee081f52eab05592f6a6a8c
MD5 960248bdcb590ad766646a7cf1847bef
BLAKE2b-256 50f2ac4e84aa69bdc2245784771368de79127026afb64f0ad7ca065cfcd8087a

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.1-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.1-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for flox_py-0.5.1-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ad1fd8de69578184f77a7a9424e7cc79a36d387229d9936f94a08b3789eb1266
MD5 1e788cc3a3750af91f7b9ecaacc1d2ef
BLAKE2b-256 01e7fabe755a25664e4db4a8bc3318386e381f125bf30c4c68cded8571d98429

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.1-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.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: flox_py-0.5.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 375.7 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.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ff5905796ce1ff479464bc291bb287566e77d6936aad9787eb9e053363968a74
MD5 9e5a1a6e88a2627fa7b3d1c62a73be20
BLAKE2b-256 e0f61e73a39ab5488bf074198f1ec0876ead906ed2cc7354a247baa78e59033d

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.1-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.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for flox_py-0.5.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3792747febc4ea8a4d091a15a5d7c922e21613c2e83360578473bd5ede4572ba
MD5 2c37114e0db1c7f862692f3d290a4235
BLAKE2b-256 64263b724882d919b4b90f2512d329128c5acae94db6d87b7df2da8562fb7912

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.1-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.1-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for flox_py-0.5.1-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 594b5d8977332b59cb06fe1e0acd75b0b35c3e1b6534a14e6fcd53a2fe79d340
MD5 a0ad10debe1733daf0b1659456772a9d
BLAKE2b-256 9706e66e7a61476ed3d06e6ecc33134692170bb2e1bd3e74bfea0f0764cf7f05

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.1-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.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: flox_py-0.5.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 374.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.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 684988e3ae02b3565cd8144a58545d266f458cd2f516a4cb8beccb2d813eb40d
MD5 552fc163915234c4035d2e3854890993
BLAKE2b-256 4dab72ab4f8cbccd2207fa1af7777bc25a4edac47509a8214385d9991676112f

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.1-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.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for flox_py-0.5.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a16f60f066cf9f2105ea14e64085c0d8b8c4a44d2542baf4bb5191062de1e7c8
MD5 5f867e456358a4bdf6212717535f05f1
BLAKE2b-256 351c135b8c23723b56600746ca792e023d430e7f20b4798bf526396284cbe0d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.1-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.1-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for flox_py-0.5.1-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 3180be3efc2b608299b4d51adf84bfe282b7cb8ba8c4398086320e3383b10f16
MD5 b831631d464b55dc698ea142532b7934
BLAKE2b-256 4417a293505b0adddfafdf069e69d2c949c7f63bfa24770a9b26241d9c84ae84

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.1-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.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: flox_py-0.5.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 373.9 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.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0281c2e450bfb9a0f7f7bc4761be380c137d7ecda6270537964a4e8ede39740b
MD5 8f931f261f51d5377edfe31835c112b0
BLAKE2b-256 8977620efc396fc9f5374589f45e583c1069ce110cbb6168e8a78866e9970d9a

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.1-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.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for flox_py-0.5.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b40715cbc8057b555705255bd8fcabed1d9169256b92b69587ba4c2a0e6ec116
MD5 94ef7caa01481ce6e875e196d3bfdd8b
BLAKE2b-256 b149178e217e8c28aa6041af70e0ff054dda6ffcfc40683c56e11b5398a49871

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.1-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.1-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for flox_py-0.5.1-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 9eea32e93b28ac675b3467d5871f6c85829ab47abda919e26bee42fb4e5924c6
MD5 a198b60acd7910862a9147f1acf6a970
BLAKE2b-256 7c1db88ef804c18f2e692dea5b4c1847e9234cfb4d5cdfaf0ae0f3bc5a85ff6c

See more details on using hashes here.

Provenance

The following attestation bundles were made for flox_py-0.5.1-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