alpacahq / alpaca-py

The Official Python SDK for Alpaca API
https://alpaca.markets/sdks/python/getting_started.html
Apache License 2.0
602 stars 147 forks source link

[Bug]: All example notebooks appear to be broken #456

Closed sdmorrey closed 4 months ago

sdmorrey commented 6 months ago

Is there an existing issue for this?

Current Behavior

"An error occured" is the only message I get when viewing example notebooks such as the one here: https://github.com/alpacahq/alpaca-py/blob/master/examples/crypto-trading-basic.ipynb

Expected Behavior

They're your example code. It would be helpful if they worked.

SDK Version I encountered this issue in

current

Steps To Reproduce

Go here https://github.com/alpacahq/alpaca-py/blob/master/examples/crypto-trading-basic.ipynb

See that it gives an error and nothing more.

Filled out the Steps to Reproduce section?

Anything else?

I'd like to learn this API. Having the publicly visible API examples not working is disappointing and makes me worried about trading here with real money. I hope this was just an oversight.

hiohiohio commented 6 months ago

@sdmorrey thank you for the reporting. Seems github's preview feature has something wrong currently. As a workaround, you could open the notebook in a Google Colab by clicking Open in Colab button in the below page [1].

*1 https://github.com/alpacahq/alpaca-py/tree/master/examples

hiohiohio commented 6 months ago

@sdmorrey seems this issue is resolved in github side.

hiohiohio commented 4 months ago

Please let me close this issue as github fixed it.