alpacahq / alpaca-ts

A TypeScript Node.js library for the https://alpaca.markets REST API and WebSocket streams.
ISC License
156 stars 41 forks source link

fix: oauth now works with the paper api end point #63

Closed kevindra closed 3 years ago

kevindra commented 3 years ago

Hello! I was able to use Alpaca's paper end point with OAuth through REST console but when I tried the same with the sdk, it returned "access token is not authorized for this scope". After some digging, it turned out the sdk was hitting the live end point instead of paper, when OAuth is enabled regardless of paper: true in the credentials. It's working now.

kevindra commented 3 years ago

please excuse the typo in the commit message :(

117 commented 3 years ago

Good catch! 😄

117 commented 3 years ago

Version 5.1.5-beta has this change included.