Petersoj / alpaca-java

A Java API for Alpaca, the commission free, algo friendly, stock trading broker. https://alpaca.markets
https://petersoj.github.io/alpaca-java/
MIT License
197 stars 82 forks source link

Watchlist #52

Closed laviRZ closed 4 years ago

laviRZ commented 4 years ago

When running the example program, you get

io.github.mainstringargs.alpaca.rest.exception.AlpacaAPIRequestException: Alpaca API Request Exception! : Status Code = 422, Status Text = "Unprocessable Entity", API Response Code = 40010001, API Response Message = "watchlist name must be unique" at io.github.mainstringargs.alpaca.AlpacaAPI.createWatchlist(AlpacaAPI.java:1121) at com.lavirz.alpaca.AlpacaExample.main(AlpacaExample.java:69)

Petersoj commented 4 years ago

Look at the error message: watchlist name must be unique The example program shouldn't necessarily be run in whole by the way. It's simply to show you some example code snippets.

laviRZ commented 4 years ago

okay. unrelated: how to I get an asstet's value?

Petersoj commented 4 years ago

Here I would also encourage you ask these types of questions in the Alpaca Slack channel #dev-alpaca-java where we can have more of a discussion and close this issue :)

laviRZ commented 4 years ago

Sorry, not very familiar with the system:)

Petersoj commented 4 years ago

No worries :)

laviRZ commented 4 years ago

how do I join the slack?