AMQP Service

Stay ahead of the market with real-time notifications from SmartInsiderTrades.

Our AMQP service lets you receive automatic updates based on insider trading events. Subscribe to the topics that matter to you and never miss a critical market movement.

The AMQP Service is available exclusively with the 'advanced' subscription.

What Can You Subscribe To?

amqps://username:password@smartinsidertrades.com:5671

You can connect to our AMQP service using your primary email (username) and API key (password), which was allocated to you and is visible under 'API Key' in your profile.

Node.js Example (Using amqplib):


        const amqp = require("amqplib");

        async function connect() {
            const amqpUrl = "amqps://username:password@smartinsidertrades.com:5671";
            const queueName = "transactions"; 

            try {
                const connection = await amqp.connect(amqpUrl);
                const channel = await connection.createChannel();

                await channel.assertQueue(queueName, {
                    durable: true,
                    arguments: { "x-queue-type": "classic" },
                });

                console.log(`Listening for messages on "${queueName}"...`);

                // Consume messages from the queue
                channel.consume(queueName, (msg) => {
                    if (msg !== null) {
                        try {
                            const messageContent = JSON.parse(msg.content.toString()); 
                            console.log("Received Message:", messageContent);
                        } catch (err) {
                            console.error("Error parsing JSON message:", err);
                        }

                        channel.ack(msg);
                    }
                });
            } catch (error) {
                console.error("Error connecting to RabbitMQ:", error);
            }
        }

        connect();
        

Available Streams

Queue Description
transactions All unfiltered insider transactions
anomalies The anomalies that we could detect
siti SITI index calculated on daily basis
high-value-transactions Insider transactions over 1M USD
stock-sense Predictions based on the 'Stock Sense' ML model

NB: The standard message TTL for all queues is 7 days.

FAQ

What is the main purpose of the AMQP service?

The AMQP protocol enables real-time, bidirectional communication, allowing you to receive the latest insider transaction data as quickly as possible.

How can I integrate with the AMQP service?

Integration with our AMQP service requires developer involvement. However, compared to the REST API, AMQP provides a more efficient way to receive insider transaction data in real time.

How fast can I receive insider transactions using the AMQP service?

We continuously optimize our infrastructure to ensure minimal latency. Insider transactions are dispatched within 2 to 5 seconds after validation.