NeoCharts

Trading & Alerts

Place orders, manage positions, and handle alerts through the chart.

These are the trading and alerts members you add once the chart is rendering (see Quick Start for the minimum needed to get a chart on screen first). Pick your platform in the sidebar — method names and JSON shapes are identical either way. See Native Channel Reference for the full wire protocol.


Orders

void placeOrder(String params);
void modifyOrder(String params);
void cancelOrder(String orderID);

params arrives as a JSON string — see JSON Schemas for the exact shape per call.

OCO orders

Stop-loss + target pairs:

void placeOCOOrder(String params);
void modifyOCOOrder(String params);
void cancelOCOOrder(String groupId);
void groupAdjustOrders(String params);

Live streams

The chart listens to these for real-time order/position/alert state.

Stream<String> get ordersStreamer;
Stream<String> get positionsStreamer;
Stream<String> get ocoOrdersStreamer;
Stream<String> get actionFeedbackStreamer;

Must be broadcast streams

ordersStreamer, positionsStreamer, ocoOrdersStreamer, and actionFeedbackStreamer must be broadcast streams (.asBroadcastStream() or a broadcast StreamController) — a single-subscription stream crashes with Bad state: Stream has already been listened to.

Alerts

void createAlert(String params);
void modifyAlert(String params);
void deleteAlert(String alertId);
Stream<String> get alertsStreamer;

See the API Reference for exact Flutter signatures, the Android and iOS integration guides for full channel registration, and JSON Schemas for wire formats.

On this page