Skip to main content

Embbed python package for market data (with pybind11)

Project description

Market Maker Game

Gitter

CI Status
Conda Recipe Conda Actions Status
Pip Builds Pip Actions Status

This package, Market Maker Game, simulates market data for testing and developing trading strategies. It is built with pybind11 and scikit-build-core, supporting Python 3.9+ (for legacy support, see older versions using scikit-build (classic)).

Features

  • Market Data Simulation: Provides realistic simulated market data for testing trading algorithms.
  • Customizable: Instantiate MarketData objects with custom parameters for flexible scenario testing.
  • Easy Integration: Built with pybind11, making it easy to integrate into Python environments.

Requirements

  • Python: 3.9+
  • pip: 21.0+

Setup

To set up the development environment, ensure you have the required versions of Python and pip installed. You can check your current versions with:

python --version
pip --version

If you need to upgrade pip, you can do so with:

pip install --upgrade pip

Install package from PYPI

python -m pip install mm_game

Installation for local development

  1. Clone this repository:

    git clone https://github.com/your-username/market_maker_game.git
    
  2. Install the package:

    pip install ./mm_game
    
  3. Test

    from mm_game import MarketData
    

Example Usage

from market_maker_game import MarketData

# Initialize MarketData with initial prices
market_data = MarketData(100.0, 105.0)

# Get the next set of simulated prices
next_prices = market_data.getNextPrices()
print("Next simulated prices:", next_prices)

Deployment

build.bat

Key Files

Required

pyproject.toml: Defines the package's Python dependencies.

CMakeLists.txt: CMake configuration.

src/main.cpp: C++ source code implementing market data simulation.

src/market_maker_game/__init__.py: Python wrapper for the C++ module.

License

This package is provided under a BSD-style license, as specified in the LICENSE file. By using or contributing to this project, you agree to the license terms.

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

mm_game-0.0.3.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

mm_game-0.0.3-cp310-cp310-win_amd64.whl (73.9 kB view details)

Uploaded CPython 3.10Windows x86-64

File details

Details for the file mm_game-0.0.3.tar.gz.

File metadata

  • Download URL: mm_game-0.0.3.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for mm_game-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2ba54207363ac4618b29445b9c3aa81de6c796591c9d8e7221336183ac96b5e7
MD5 0a906072897889618475012e03ba447b
BLAKE2b-256 b8800dde737238aa84ed29e08accdc8140f67e04a8bb9cac328978a997ed016f

See more details on using hashes here.

File details

Details for the file mm_game-0.0.3-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: mm_game-0.0.3-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 73.9 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for mm_game-0.0.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 81aeb0e67b801392ae4e35ac2d90b6337a632e93081243c7ad18ff3d644ae0a3
MD5 7b7072c6dea95f6f924b8691112e4682
BLAKE2b-256 303790fec9011ae958f4fd0e1cb50d7016c926a44e4e6c5db300536a32a13533

See more details on using hashes here.

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