Live Data Feed
Scylla is a cutting-edge software solution designed to provide real-time stock market quote data to traders, investors, financial analysts, and anyone seeking up-to-the-minute information on stock prices, trading volumes, and other critical market metrics. With its user-friendly interface and lightning-fast data retrieval capabilities, Scylla empowers users to make informed decisions in the dynamic world of stock trading.
Use Cases
-
Day Trading: Scylla provides day traders with the real-time data they need to execute rapid trades and capitalize on market fluctuations.
-
Investment Decisions: Long-term investors can use Scylla to make informed investment decisions based on real-time market data and historical performance.
-
Financial Analysis: Financial analysts and professionals can perform in-depth analysis and research on stocks, sectors, and markets using Scylla's comprehensive data and charting tools.
-
Portfolio Management: Scylla helps users manage their portfolios by offering real-time monitoring of their holdings and automated alerts for significant changes.
Python Code Example
import asyncio
import websockets
async def main():
uri = "wss://hist.grosch.capital/ws"
headers = {
"Authorization": f"Bearer {api_token}" # Replace with your own API key
}
async with websockets.connect(uri, extra_headers=headers) as websocket:
while True:
try:
data = await websocket.recv()
print(data)
except websockets.ConnectionClosed:
print("Connection closed.")
break
if __name__ == "__main__":
asyncio.run(main())
JS Code Example
const WebSocket = require('websocket').w3cwebsocket;
const uri = 'wss://hist.grosch.capital/ws';
const headers = {
Authorization: `Bearer apiToken`, // Replace with your own API key
};
const client = new WebSocket(uri, undefined, undefined, headers);
client.onerror = (error) => {
console.error(`Connection Error: ${error}`);
};
client.onopen = () => {
console.log('Connected to WebSocket');
};
client.onclose = (event) => {
if (event.code === 1000) {
console.log('Connection closed normally.');
} else {
console.error(`Connection closed with code: ${event.code}`);
}
};
client.onmessage = (message) => {
if (message.type === 'message') {
console.log(`Received data: ${message.data}`);
}
};
process.on('SIGINT', () => {
if (client.readyState === WebSocket.OPEN) {
console.log('Closing WebSocket...');
client.close();
}
});