getTradingRecords method
Get recent trades.
Returns the last trades from a trade id from
with a limit of limit
trades. The latest limit
trades will be
returned (default limit
: 500, max: 1000)
https://bybit-exchange.github.io/docs/inverse/?console#t-publictradingrecords
Implementation
Future<Map<String, dynamic>?> getTradingRecords(
{required String symbol, int? limit}) async {
log.d('ByBitRest.getTradingRecords');
var parameters = <String, dynamic>{};
parameters['symbol'] = symbol;
if (limit != null) parameters['limit'] = limit;
return await request(
path: '/v2/public/trading-records',
type: 'GET',
parameters: parameters);
}