ByBitRest constructor

ByBitRest({
  1. String url = 'https://api.bybit.com',
  2. String key = '',
  3. String password = '',
  4. Duration? timeout,
  5. int receiveWindow = 1000,
})

Constructor of the REST API communication. The receiveWindow must be given in milliseconds and prevents replay attacks. See https://bybit-exchange.github.io/docs/inverse/?console#t-authentication

Implementation

ByBitRest(
    {this.url = 'https://api.bybit.com',
    this.key = '',
    this.password = '',
    this.timeout,
    this.receiveWindow = 1000}) {
  log = LoggerSingleton();
}