Skip to content
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

Type enums cant access in code #155

Open
shaikrehman07 opened this issue Jul 19, 2024 · 10 comments
Open

Type enums cant access in code #155

shaikrehman07 opened this issue Jul 19, 2024 · 10 comments

Comments

@shaikrehman07
Copy link

TraderAPIEndpointType, MarketDataWebsocketSourceType, BrokerAPIEndpointType these are not found when using SDK.

@Petersoj
Copy link
Owner

They are available in the net.jacobpeterson.alpaca.model.util.apitype package (Javadoc). Make sure you're using the Maven artifact dependency. Many classes get generated at build time.

@shaikrehman07
Copy link
Author

only the above mentioned classes are not generated when using maven dependency for build.

@Petersoj
Copy link
Owner

Can you share your build.gradle or pom.xml or some code snippets showing the imported packages? I'm unable to reproduce your issue using version 10.0.1.

@shaikrehman07
Copy link
Author

Sure. Please find pom.xml file and screenshot of code.
<img width="901" alt="code" src="https://github.com/user-attachments/assets/632ae010-5af5-4c38-b5d3-4bbc7577d
pom
be7">

@Petersoj
Copy link
Owner

Your pom.xml appears to look fine. Can you share the build stacktrace/error and the code snippet where you are getting a compilation error?

@shaikrehman07
Copy link
Author

Attached the code as you can see import for AlpacaAPI is fine but other 2 classes are given compile error.
code

@Petersoj
Copy link
Owner

Run mvn build and paste the output. Can't see what the compilation errors are in the screenshot. Could also be IntelliJ's cache. Invalidate the cache by going to File > Invalidate Caches... > Invalidate & Restart.

@Petersoj
Copy link
Owner

Petersoj commented Aug 3, 2024

Is this still an issue for you?

@cucuso
Copy link

cucuso commented Sep 5, 2024

change version to 10.0.0 I am getting the same error wit 10.0.1

@shaikrehman07
Copy link
Author

changing to version 10.0.0 helped me. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants