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

key_id='REPLACEME' #22

Open
jabowery opened this issue May 15, 2019 · 0 comments
Open

key_id='REPLACEME' #22

jabowery opened this issue May 15, 2019 · 0 comments

Comments

@jabowery
Copy link

jabowery commented May 15, 2019

I had to make these mods to samplealgo/algo.py to get it to work as described in the README:

import pandas as pd
import time
import logging
import os

from .universe import Universe

logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.DEBUG)

NY = 'America/New_York'
api = tradeapi.REST(
    key_id=os.environ['APCA_API_KEY_ID'],
    secret_key=os.environ['APCA_API_SECRET_KEY'],
    base_url=os.environ['APCA_API_BASE_URL'] or 'https://paper-api.alpaca.markets'
)
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

1 participant