TradeInterface class abstract
- Implementers
Constructors
Properties
-
actionFeedbackStreamer
→ Stream<
String> -
Broadcast stream of feedback for any user-initiated action (order or
alert create/modify/cancel). The host app must return a broadcast
stream.
no setter
-
alertsStreamer
→ Stream<
String> -
Stream of alerts. Emits a JSON-encoded list of alert objects.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasOCO → bool
-
Whether the broker supports OCO (One Cancels Other) orders.
When false, TP order placement is disabled.
no setter
-
ocoOrdersStreamer
→ Stream<
String> -
Stream of pending OCO trigger pairs — SL+TP legs not yet real orders.
Make sure to stream before launching chart.
no setter
-
ordersStreamer
→ Stream<
String> -
Stream of orders. Make sure to stream before
launching chart.
no setter
-
positionsStreamer
→ Stream<
String> -
Stream of positions. Make sure to stream before
launching chart.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancelOCOOrder(
String groupId) → void -
Cancels an existing OCO pair (both legs, whether pending or already
live and still linked).
groupIdis the pair's own identifier — same shape as cancelOrder, no leg data needed to identify it. -
cancelOrder(
String orderID) → void -
Cancels an existing open order.
orderIDis the unique identifier of the order to cancel. -
createAlert(
String params) → void - Creates a new price alert for the current symbol.
-
deleteAlert(
String alertId) → void - Deletes an existing alert.
-
groupAdjustOrders(
String params) → void - Places a group-adjust order — simultaneously
-
modifyAlert(
String params) → void - Modifies an existing alert's trigger price.
-
modifyOCOOrder(
String params) → void -
Modifies an existing OCO order. Same
paramsshape as placeOCOOrder. -
modifyOrder(
String params) → void - Modifies an existing open order.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
placeOCOOrder(
String params) → void - Places an OCO (One Cancels Other) order with a stop-loss and target leg.
-
placeOrder(
String params) → void - Places a new order.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited