While25 - Programmable Trading Platform
Home
SDK
BlogCardsSupportDownload
While25

A programmable trading platform.

Download While25Book a call

Order managementRisk managementChartsAI assistantCompare

Python SDKSDKDownload

AboutBlogWhile CardsCareersSupportContact

Interactive BrokersAlpacaZerodhaUpstoxAll brokers

TermsPrivacyLicenceRiskAIAcceptable useNotices

While25 is software. It is not a broker, dealer, exchange or investment adviser, and nothing on this site is a recommendation to buy or sell any instrument. Orders you place route to your own brokerage account; While25 never holds funds or securities.

Trading carries risk of loss, including losses greater than your deposit on leveraged products. Backtests and simulations do not predict future returns. Broker and exchange names are trademarks of their owners. We plan to add Coinbase, Binance and Robinhood; you cannot connect them yet.

© 2026 While25

while25
Start here
  • Quickstart
  • Writing a module
Declaring
  • Module types
  • Subscriptions
  • Inputs
  • Plots & style
Calling
  • Market data
  • Instrument rules
  • Options, futures & combos
  • Portfolio
  • Orders
  • Chart
  • Panels & UI
  • Workspace
  • Context
  • Errors
Contents · Context
Start here
  • Quickstart
  • Writing a module
Declaring
  • Module types
  • Subscriptions
  • Inputs
  • Plots & style
Calling
  • Market data
  • Instrument rules
  • Options, futures & combos
  • Portfolio
  • Orders
  • Chart
  • Panels & UI
  • Workspace
  • Context
  • Errors
SDK/Calling/Context
← PreviousWorkspaceNext →Errors

Context

Everything else on while25. The ctx a handler receives is the same object, kept for the explicit style and for tests.
PYwhile25.instrument · while25.interval
What the chart asked for. An indicator should compute from these rather than hardcoding a symbol — one registration then serves every chart.
PYwhile25.params → dict
The user’s values for your declared inputs.
PYwhile25.log(message, level="info")
Writes to the module’s console. level is info, warn or error.
PYwhile25.emit(name, payload=None)
Fire a signal another module can receive with @on.signal(name). Fire-and-forget: no queue, no replay, and a signal with no subscriber is a no-op.
PYwhile25.indicator(cls, *, instrument="", interval="", **params) → dict
Run another indicator in this process and get its series back — no chart, no round trip. This is how a strategy uses an indicator’s numbers.
PYwhile25.alive() → bool
False once the platform asks the module to stop. Check it inside any long loop.
← PreviousWorkspaceNext →Errors
The SDK itself has no dependencies, so you can write and unit-test a module on a plain Python install before it ever touches the platform. numpy and pandas are available in the runtime. Get the desktop app to run it — Python runs beside the engine, which a browser cannot host.