<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Aakash Solanki</title>
    <description>The latest articles on DEV Community by Aakash Solanki (@aakashps1995).</description>
    <link>https://dev.to/aakashps1995</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F690610%2Fe9e185d3-bde3-48a5-bc38-8862977fe7d0.jpeg</url>
      <title>DEV Community: Aakash Solanki</title>
      <link>https://dev.to/aakashps1995</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aakashps1995"/>
    <language>en</language>
    <item>
      <title>Don't use SNS-SQS, Amazon Kinesis is a much better option.</title>
      <dc:creator>Aakash Solanki</dc:creator>
      <pubDate>Mon, 30 Aug 2021 00:41:57 +0000</pubDate>
      <link>https://dev.to/aakashps1995/don-t-use-sns-sqs-amazon-kinesis-is-a-much-better-option-hn2</link>
      <guid>https://dev.to/aakashps1995/don-t-use-sns-sqs-amazon-kinesis-is-a-much-better-option-hn2</guid>
      <description>&lt;p&gt;Before Kinesis, SNS with SQS was preferred for most use cases unless we don't need to guarantee FIFO on messages,&lt;br&gt;
The main advantage of Kinesis is:&lt;br&gt;
We can read the same message from multiple applications and re-read messages.&lt;/p&gt;

&lt;p&gt;To manage spike load, it's pain in  Kinesis,&lt;br&gt;
we need to increase the number of shards where SQS is infinitely scalable.&lt;/p&gt;

&lt;p&gt;Kinesis is preferred when data in the stream are related or not related to each other,&lt;br&gt;
While SNS/SQS is preferred when data in the stream are not related to each other.&lt;/p&gt;

&lt;p&gt;Pricing models are different,&lt;br&gt;
SQS charges per message while Kinesis charges per hard per hour,&lt;br&gt;
Total charges of SNS-SQS is higher than Kinesis,&lt;/p&gt;

&lt;p&gt;Real-time analytics of data is only possible with Kinesis while SNS-SQS is good for batch messages for future processing.&lt;/p&gt;

&lt;p&gt;Some points are missing, Please add those points or suggest me required changes in my post.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>awscommunitybuilders</category>
    </item>
    <item>
      <title>Algorithmic Trading Architecture on AWS using Zerodha kite API</title>
      <dc:creator>Aakash Solanki</dc:creator>
      <pubDate>Fri, 27 Aug 2021 11:16:38 +0000</pubDate>
      <link>https://dev.to/aakashps1995/algorithmic-trading-architecture-on-aws-using-zerodha-kite-api-bi8</link>
      <guid>https://dev.to/aakashps1995/algorithmic-trading-architecture-on-aws-using-zerodha-kite-api-bi8</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4T6uig1D--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nlkte5fist6ca4rbgggp.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4T6uig1D--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nlkte5fist6ca4rbgggp.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Please look into this architecture diagram, I'm using to automate trading signal,&lt;/p&gt;

&lt;p&gt;Here I'm using Zerodha's Kite web socket API to fetch tick data of more than 200 securities,&lt;br&gt;
To generate intraday trades using Redis in-memory database and to generate positional trades using dynamoDB database service,&lt;/p&gt;

&lt;p&gt;Step 1&lt;br&gt;
Lambda function cron job starts EC2 instance before market opening at every market day&lt;br&gt;
Step 2&lt;br&gt;
Python script connects with Zerodha kite web socket and starts data feeding&lt;br&gt;
Step 3&lt;br&gt;
Python script starts pushing data to a Redis in-memory database&lt;br&gt;
Step 4&lt;br&gt;
Python script resamples and pushes data from Redis to MongoDB, as per the intraday strategies after every fixed interval&lt;br&gt;
Step 5&lt;br&gt;
Lambda function resamples and pushes data from MongoDB to dynamoDB, as per the positional strategies after every fixed interval&lt;br&gt;
Step 6&lt;br&gt;
Python script generates an intraday trading signals and places orders to Zerodha&lt;br&gt;
Step 7&lt;br&gt;
After getting order confirmation from Zerodha, python script pushes order details to dynamoDB&lt;br&gt;
Step 8&lt;br&gt;
Lambda function gets positional trading data, generates a positional trading signals and places orders to Zerodha&lt;br&gt;
Step 9&lt;br&gt;
After getting order confirmation from Zerodha, Lambda function pushes order details to dynamoDB.&lt;br&gt;
Step 10&lt;br&gt;
Python script gets intraday order details from dynamoDB and updates the orders as per the current market price if required&lt;br&gt;
Step 11&lt;br&gt;
Python script updates current orders or cancel and place a new orders to Zerodha&lt;br&gt;
Step 12&lt;br&gt;
Lambda function gets current positional data and update positional orders as per current market price if required&lt;br&gt;
Step 13&lt;br&gt;
Lambda function updates current orders or cancel and place new orders to Zerodha&lt;br&gt;
Step 14&lt;br&gt;
Lambda function square-off intraday open positions, as per individual intraday strategy rules&lt;br&gt;
Step 15&lt;br&gt;
Lambda function square-off all intraday open positions in case of emergency&lt;br&gt;
Step 16&lt;br&gt;
Lambda function cron job starts step function after market closing&lt;br&gt;
Step 17&lt;br&gt;
Lambda function puts all data to S3 from MongoDB and dynamoDB&lt;br&gt;
Step 18&lt;br&gt;
Lambda function stops EC2 instance after complete all steps&lt;/p&gt;

&lt;p&gt;Please suggest to me how can I improve this and a new important feature I can add to this.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>architecture</category>
      <category>awscommunitybuilders</category>
      <category>trading</category>
    </item>
  </channel>
</rss>
