-
Notifications
You must be signed in to change notification settings - Fork 42
Bar interface does not match Alpaca Bar #119
Comments
👀 |
raw is not present in v7. do you mind just casting this for now? |
No problem, I'm not blocked, just wanted to report the bug. |
im struggling to find time to finish v7 😢 |
Np. Do you know why https://github.com/alpacahq/alpaca-trade-api-js/blob/master/lib/alpaca-trade-api.js#L148:
VSCode tells me |
code quality and extensibility |
v7 is pretty sweet. check out the src in #113 |
Ok, I can try to use it from now on, but when I tried installing it using My package.json shows:
I see the package and files in node_modules, and I'm importing like: Did I install it correctly? |
Oh, specifying the path to index worked: However, I'm using OAuth, and it doesn't look like you support access_token auth yet. If you can add that, then I'll use it from now on. |
Last comment on this. I've edited the files myself: In
And I was able to get the bars, including the vm property! |
Description
I'm using
getBars()
which returnsPageOfBars
containingBar[]
, andRawPageOfBars
containingRawBar[]
.Using typescript, I'm unable to access
vw
andn
as it's not typed, andS
is undefined.The API returns:
However, Bar is:
and RawBar:
Expected
Type interface should match what the API returns. Also, I would expect raw to give an
any
orobject
type as that's truly raw. I don't see a purpose ofraw
otherwise, reference:Reproduction
The text was updated successfully, but these errors were encountered: