semvec/pypi-packages huggingface dataset:
fast-trading-simulator 0.1.7
Numba accelerated minimalist trading simulator
License: MIT
Requires Python: >=3.8
Keywords: trading, simulator, numba, quant, minimalist


## Intro

- `Numba` accelerated `minimalist` trading simulator

![](https://raw.githubusercontent.com/SerenaTradingResearch/fast-trading-simulator/refs/heads/main/test/simulate.png)

## Usage

```bash
pip install fast-trading-simulator
```

- [Simulation data (2025-08-01 to 2025-11-20)](https://raw.githubusercontent.com/SerenaTradingResearch/fast-trading-simulator/refs/heads/main/test/futures_data_2025-08-01_2025-11-20.pkl)

```py
import numpy as np
import talib as ta
from crypto_data_downloader.utils import load_pkl
from trading_models.utils import D_TYPE

from fast_trading_simulator.sim import map_trades, simulate

path = "./futures_data_2025-08-01_2025-11-20.pkl"
data: D_TYPE = load_pkl(path, gz=True)

ref_sym = "BTCUSDT"
price_idx = 1
delta = 0.05

T = len(data[ref_sym])
data = {k: v for k, v in data.items() if len(v) == T}
all_act = []
for sym, v in data.items():
    p = v[:, price_idx]
    obs = p / ta.KAMA(p, 20) - 1
    pos = np.where(obs < -delta, 1, 0)
    pos = np.where(obs > delta, -1, pos)
    lev = np.full(T, 20)
    timeout = np.full(T, 10)
    take_profit = np.full(T, 0.01)
    stop_loss = np.full(T, -0.9)
    act = np.array([pos, lev, timeout, take_profit, stop_loss]).T
    all_act.append(act)
market = np.array(list(data.values()))
action = np.array(all_act)
tot_fee = 1e-3
liq_fee = np.full(len(data), 0.02)

trades = simulate(market, action, tot_fee, liq_fee, use_ratio=0.2, alloc_ratio=0.01)
map_trades(trades, plot=True)

```
optionsconfig 0.4.0
Unified configuration management for environment variables, CLI arguments, and documentation
License: MIT
Requires Python: >=3.8

# OptionsConfig

Unified configuration management for Python applications. Define your configuration schema once, use it everywhere.

[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

## Features

- **📋 Single Schema Definition** - Define configuration options once in a typed schema
- **📚 Generate Documentation** - Create `.env.example` and README sections automatically
- **🔗 Dependency Management** - Define relationships between configuration options
- **📦 TOML Configuration** - Load schema from `pyproject.toml` for cleaner code

## Requirements
- Python >= 3.8

## Installation
```bash
pip install optionsconfig
```

## Usage
See the example and its documentation on GitHub. Can also be used to test the installation.
- [TOML.md (toml example)](https://github.com/Surxe/OptionsConfig/blob/main/examples/toml/TOML.md)
  
## License

MIT License - see [LICENSE](LICENSE)  for details

## Contributing

Contributions welcome! TODO

## Schema
- **[Schema](https://github.com/Surxe/OptionsConfig/blob/main/SCHEMA.md)** - Detailed information on schema configuration

## Links

- **Repository**: https://github.com/Surxe/OptionsConfig
- **Issues**: https://github.com/Surxe/OptionsConfig/issues