subscribeToPosition method

void subscribeToPosition()

Subscribe to the position channel. You need to have a valid api-key in order to receive a valid response from the server https://bybit-exchange.github.io/docs/inverse/#t-websocketposition

Implementation

void subscribeToPosition() {
  log.i('Subscribe to position');
  websocket.subscribeTo(topic: 'position');
}