ox-charts

Library vs host responsibilities

What ox-charts does for you, and what stays with your app.

ox-charts doesYour app does
Draws charts, layers, drawings and order linesSupplies bars (IDatafeed) and symbol metadata
Names symbols readably, prints each in its own decimalsResolves each symbol's name, tick size, decimals and lot size (resolveSymbol)
Counts quantities in lots and sends unitsSays what a lot is (SymbolInfo.lotSize)
Shows a pending order until the broker publishes itEchoes clientOrderId on every order it publishes
Gates every order against limits and writes the audit logPlaces, modifies and cancels at the broker (the adapter)
Runs OxScript in a Web Worker sandboxChooses where scripts are saved (scriptStore)
Turns option.leg into a contract requestResolves the contract (resolveOptionContract)
Pauses strategies on gaps, rejects and sleepCalls pauseAll on its own disconnects
Keeps state in the shell and storagePersists it where it wants (storage prop)
Declares alerts from scriptsDelivers them (push, SMS, sound)

No hidden broker calls

Scripts never reach a broker from the worker. Their orders are data (intents) that cross to the trading controller in your page, so everything a strategy does passes your adapter, the gate and the audit log.