getConditionalOrder method
Query conditional order. https://bybit-exchange.github.io/docs/inverse/#t-querycond
Implementation
Future<Map<String, dynamic>?> getConditionalOrder(
{required String symbol,
String? stopOrderId,
String? orderLinkId}) async {
log.d('ByBitRest.getConditionalOrder');
var parameters = <String, dynamic>{};
parameters['symbol'] = symbol;
if (stopOrderId != null) parameters['stop_order_id'] = stopOrderId;
if (orderLinkId != null) parameters['order_link_id'] = orderLinkId;
return await request(
path: '/v2/private/stop-order',
type: 'GET',
parameters: parameters,
withAuthentication: true);
}