Giter VIP home page Giter VIP logo

Comments (4)

ndenys650 avatar ndenys650 commented on July 28, 2024

having the same problem here. have you been able to resolve?

from alpaca-backtrader-api.

albertpurnama avatar albertpurnama commented on July 28, 2024

Hi,

The reason @davidkwong's code does not work is because the code cannot read your key_id and secret_key. You will need to either one of the following ways:

  1. Copy your APCA_API_KEY_ID and APCA_API_SECRET_KEY into the store initialization, or
  2. You will need to load those values from the os environment. The way to do this is by the following
import os
...

store = alpaca_backtrader_api.AlpacaStore(
  key_id=os.getenv('APCA_API_KEY_ID'),
  secret_key=os.getenv('APCA_API_SECRET_KEY'),
  paper=True
)

Hope this help @ndenys650 too!

from alpaca-backtrader-api.

shlomiku avatar shlomiku commented on July 28, 2024

work under fix: #24.
it will be merged soon

from alpaca-backtrader-api.

shlomiku avatar shlomiku commented on July 28, 2024

code has been merged and a new version released. https://pypi.org/project/alpaca-backtrader-api/0.4/

from alpaca-backtrader-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.