This release is a pre-release and may not be stable for production use.
Simudyne Pulse Python SDK
Python client for the Pulse synthetic market data API. Returns data as Polars DataFrames.
Installation
pip install simudyne-pulse
The distribution is named simudyne-pulse; the import name is simudyne:
from simudyne import PulseABM
Requires Python 3.10+.
Development builds
The dev branch is a prerelease channel. Pushes to it publish prerelease
versions (e.g. 0.6.0.dev1) that are separate from the stable versions cut on
prod. pip install simudyne-pulse always resolves to the latest stable
release and ignores prereleases, so dev builds can never affect a normal
install.
To install the latest dev build, opt in with --pre:
pip install --pre simudyne-pulse
Only use dev builds for testing unreleased changes; they are not guaranteed
stable. Merge dev into prod to promote those changes to a stable release.
Quick start
from simudyne import PulseABM
client = PulseABM(api_key="pk_live_...")
# List available exchanges, symbols, and dates
symbols = client.data.get_symbols(year=2024)
print(symbols)
# Fetch L2 order book data
df = client.data.get_L2("HKEX", "HSIJ4", "2024-04-02T09:15:00", "2024-04-02T09:16:00")
print(df.head())
API reference
PulseABM(api_key, base_url=None)
| Parameter | Env variable | Default |
|---|---|---|
api_key |
SIMUDYNE_API_KEY |
required |
base_url |
SIMUDYNE_BASE_URL |
Pulse API |
client.data
All data methods return Polars DataFrames. Large result sets are automatically paginated.
# Available exchanges, symbols, and dates
client.data.get_symbols(year=2024)
# L1: top of book (best bid/ask)
client.data.get_L1("HKEX", "HSIJ4", "2024-04-02T09:15:00", "2024-04-02T10:00:00")
# L2: full order book (all levels)
client.data.get_L2("HKEX", "HSIJ4", "2024-04-02T09:15:00", "2024-04-02T09:16:00")
# Orders: individual order events
client.data.get_orders("HKEX", "HSIJ4", "2024-04-02T09:15:00", "2024-04-02T10:00:00")
# Trades: executed trades
client.data.get_trades("HKEX", "HSIJ4", "2024-04-02T09:15:00", "2024-04-02T10:00:00")
Parameters (same for all data methods):
| Parameter | Type | Description |
|---|---|---|
exchange |
str | Exchange code (e.g. HKEX) |
sym |
str | Symbol name (e.g. HSIJ4) |
datetime_start |
str | Start time, ISO 8601 (e.g. 2024-04-02T09:15:00) |
datetime_end |
str | End time, ISO 8601 |
client.profile
client.profile.get() # Account info
client.profile.usage() # API usage stats
client.api_keys
client.api_keys.list() # List active keys
client.api_keys.create(name="research") # Create a new key
client.api_keys.revoke(key_id="key_...") # Revoke a key
Configuration
You can set your API key as an environment variable instead of passing it directly:
export SIMUDYNE_API_KEY=pk_live_...
from simudyne import PulseABM
client = PulseABM() # picks up SIMUDYNE_API_KEY automatically
License
MIT
Metadata
Release files for simudyne-pulse 0.7.0.dev1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simudyne_pulse-0.7.0.dev1.tar.gz | 22.9 kB | With provenance | Details for simudyne_pulse-0.7.0.dev1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simudyne_pulse-0.7.0.dev1-py3-none-any.whl | Python 3 | none | any | Details for simudyne_pulse-0.7.0.dev1-py3-none-any.whl |
Total release size: 44.4 kB
Release files / simudyne_pulse-0.7.0.dev1.tar.gz
| Download URL | simudyne_pulse-0.7.0.dev1.tar.gz |
|---|---|
| Size | 22.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7f2608fd43d0008ff05f23694d071770aa195bd9e475ff61804b88e0e33776a
|
|
BLAKE2b-256 checksum How to use checksums |
9186378dd498f22c19b0c861a444da706c212dccf70368836ad9bd7cff44cc2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.
Transparency logRelease files / simudyne_pulse-0.7.0.dev1-py3-none-any.whl
| Download URL | simudyne_pulse-0.7.0.dev1-py3-none-any.whl |
|---|---|
| Size | 21.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7606a15e710e686de77268c51bb9e39f7a368d5b83ee60f2ebdf47d0f668032d
|
|
BLAKE2b-256 checksum How to use checksums |
7bf240a2deba5526df1f71697afd572d677d919bdfc79e36f9bc4fe9aa29d41d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.
Transparency logSecurity for simudyne-pulse 0.7.0.dev1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for simudyne_pulse-0.7.0.dev1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.