Is there a fee to use the API?

There are no additional fees to connect to the TWS API to receive portfolio or trade information. Placing trades generally involves the same commissions that apply to orders created within TWS, however there are some exceptions such as for direct-routed U.S. stock orders. Here, Smart-routed stock API orders can use either the Tiered or Fixed stock commission structure however, directed API orders cannot use the Tiered structure and are subject to a higher commission rate Fixed structure.  Please refer to the Commission page of our website for further details.

Powered by IBot
How do I obtain a lower commission rate?
How do I direct route an order in IBKR Mobile?
How much do you charge for bonds?
How are overnight position fees on futures calculated?