For example,
from alpaca.broker.client import BrokerClient
broker_client = BrokerClient(
api_key=APIKEY,
secret_key=SECRETKEY,
sandbox=True,
api_version = 'v2',
url_override='https://paper-api.alpaca.markets'
)
Will yield APIError : {“message”: “forbidden.”}
import alpaca_trade_api as tradeapi
api = tradeapi.REST(APIKEY, SECRETKEY, 'https://paper-api.alpaca.markets', api_version='v2')
Works just fine. Am I the only one with this issue?r
Edit: Solved my issue see reply. I needed to RTFM