Unknown API key error using nodejs api

Glad you figured that out. Yeah, it looks like the JS API’s usePolygon parameter only dictates which websocket to use, so it doesn’t fix the issue with Polygon’s REST API.

As for “account is not authorized to trade”, I’m guessing this thread is related.