Environment
Language
python 3.8
Alpaca SDK Version
LATEST
Other Environment Details
None
Problem
Summary
API v2 - Documentation | Alpaca specifies symbol accepts:
“{symbol}”
- “{symbol}:{exchange}”
- “{symbol}:{exchange}:{asset_class}”
- “{asset_id}”
but when I pass “CURV:NYSE” to get_barset I get the following error:
alpaca_trade_api.rest.APIError: symbols cannot contain colons
Paper or Live Tradng?
Live
Example Code
api.get_barset(‘CURV:NYSE’, ‘day’, limit=days)