Messtone LLC Devices Embedding Real-time Stock Pricing Data Common Behavior URL Subscription. wss://stream.data.alpaca.markets/v2/{source} Sandbox URL: wss://stream.data.sandbox.alpaca.markets/v2/{source} The server will be in the command: [{“T”:”{message_type}”,{contents}},…} [{“T”:”success”,”msg”:”connected”}] {“action”:”auth”,” key”:”{KEY_ID}”,”secret”:”{SECRET}”} accessing the historical endpoints: websocat wss://stream.data.alpaca.markets/v2/sip\-H=”APCA-API-KEY-ID:{KEY_ID}”-H=”APCA-API-SECRET-KEY:{SECRET}”Client-to-Server {“action”:”auth”,”key”:”CK******************”,”secret”:”****************************************”} {“action”:”subscribe”,”trades”:[“AAPL”],”quotes”:[“AMD”,” CLDR”],”bars”:[“*”]}

Leave a comment