-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NestJS--> TypeError: alpaca_trade_api_1.default is not a constructor #186
Comments
Using Nestjs, and after connecting it. I tried accessing the websocket, and giving me this error. It is working fine on Nodejs |
Add this compiler option in tsconfig.json |
I have the same issue. I set the compiler options like you suggested @MaherNajar . i am on version
and I am initializing Alpaca exactly how the docs say to do it. https://docs.alpaca.markets/docs/getting-started-with-alpaca-market-data
But I am getting the compiler error
Is there a step that I am missing? |
const alpaca =new Alpaca({ keyId: 'API_KEY', secretKey: 'SECRET' })
const websocket=alpaca.data_stream_v2
The text was updated successfully, but these errors were encountered: