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 · Inputs
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/Declaring/Inputs
← PreviousSubscriptionsNext →Plots & style

Inputs

Declared inputs appear in the chart’s settings dialog and arrive as while25.params. Read them with a default — a plain run passes an empty dict.
TypeSignature
IntInt("length", default=20, minimum=2, maximum=500, step=1, label="")
FloatFloat("mult", default=2.0, minimum=0.1, maximum=10.0, step=0.1)
BoolBool("use_close", default=True)
StrStr("note", default="")
EnumEnum("source", choices=["close", "hlc3"], default="close")
SymbolSymbol("hedge", label="Hedge")

Every type takes label=. Values arrive typed; one out of range fails the start naming the input, and a default outside its bounds raises when the class is declared. On a strategy the form is the Deploy window. A Symbol’s value is the instrument key and exists only once the module runs, so turn its prices on with while25.subscribe(key, on_tick=self.on_coin), not a decorator. Import the types directly: inside a class body inputs shadows the module.

← PreviousSubscriptionsNext →Plots & style
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.