ib_insync error ‘The API interface is currently in Read-Only mode’

Kôd

ib.connect ( '127.0.0.1' , 4002 , clientId = 1 )

Pogreška

Error 321, reqId 2147483647: Error validating request.-'cG' : cause - The API interface is currently in Read-Only mode.
Error 321, reqId -1: Error validating request.-'ce' : cause - The API interface is currently in Read-Only mode.
open orders request timed out
completed orders request timed out

Rješenje

ib.connect ( '127.0.0.1' , 4002 , clientId = 1 , readonly = True )
  • 4002 … IBKR Gateway paper
  • 4001 … IBKR Gateway live
  • 7497 … IBKR TWS paper
  • 7496 … IBKR TWS live

ibkr interactive broker interactivebroker xibkr xinteractive xbroker xinteractivebroker

image_pdfimage_print