{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":388893730,"defaultBranch":"vSphere_Automation","name":"Siddartha","ownerLogin":"siddartha1192","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2021-07-23T18:33:48.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/24792993?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1715257007.0","currentOid":""},"activityList":{"items":[{"before":"b82f00756ae55dd888a370bc8e72f5f3a9bdee7f","after":"9e185e0e95ac88986077ddd624106f90c9d17985","ref":"refs/heads/siddartha1192-patch-1","pushedAt":"2024-05-21T20:36:30.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"siddartha1192","name":"Siddartha Kumar Das","path":"/siddartha1192","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/24792993?s=80&v=4"},"commit":{"message":"first commit","shortMessageHtmlLink":"first commit"}},{"before":"4cff6df2c0edb14320652d445771ffd9cfeb4f31","after":"c1c93d58e9ade579579319a46d77b185db0913a0","ref":"refs/heads/vSphere_Automation","pushedAt":"2024-05-13T11:11:49.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"siddartha1192","name":"Siddartha Kumar Das","path":"/siddartha1192","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/24792993?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"df24112e14dc254ccc5f5d5aa9f45f6091312f9d","after":"60c92bb157a30872fcb1ec69dfc21f9caa653a66","ref":"refs/heads/Fyers_Zerodha_API_Trading_using_REST_Powershell","pushedAt":"2024-05-12T12:24:44.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"siddartha1192","name":"Siddartha Kumar Das","path":"/siddartha1192","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/24792993?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"76a9e0aae7dd0798d6d6312af326e8d0ed9d225d","after":"4cff6df2c0edb14320652d445771ffd9cfeb4f31","ref":"refs/heads/vSphere_Automation","pushedAt":"2024-05-12T12:24:26.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"siddartha1192","name":"Siddartha Kumar Das","path":"/siddartha1192","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/24792993?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"ef4f641f195329e163abb2f96e6efeb1d1078b49","after":"df24112e14dc254ccc5f5d5aa9f45f6091312f9d","ref":"refs/heads/Fyers_Zerodha_API_Trading_using_REST_Powershell","pushedAt":"2024-05-12T12:24:01.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"siddartha1192","name":"Siddartha Kumar Das","path":"/siddartha1192","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/24792993?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"19ee74c61c3f9a9b1e9c97af63417d6aac81669a","after":"76a9e0aae7dd0798d6d6312af326e8d0ed9d225d","ref":"refs/heads/vSphere_Automation","pushedAt":"2024-05-10T10:07:45.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"siddartha1192","name":"Siddartha Kumar Das","path":"/siddartha1192","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/24792993?s=80&v=4"},"commit":{"message":"Update ESXi Hardware Details","shortMessageHtmlLink":"Update ESXi Hardware Details"}},{"before":"b82f00756ae55dd888a370bc8e72f5f3a9bdee7f","after":null,"ref":"refs/heads/NewTestBranch","pushedAt":"2024-05-09T12:16:47.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"siddartha1192","name":"Siddartha Kumar Das","path":"/siddartha1192","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/24792993?s=80&v=4"}},{"before":null,"after":"b82f00756ae55dd888a370bc8e72f5f3a9bdee7f","ref":"refs/heads/NewTestBranch","pushedAt":"2024-05-09T12:15:57.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"siddartha1192","name":"Siddartha Kumar Das","path":"/siddartha1192","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/24792993?s=80&v=4"},"commit":{"message":"Update PineScript_Strategy\n\nI made this code to trade intraday market, this will give the buy and sell signal in trading view.\r\n1. it takes the 2 moving avg to when there is a crossover or cross under between the moving avg it marks the price.\r\n2. It adds/subtracts 80points to the marked price treat it as resistance. After adding/subtracting it plot that two line above and below.\r\n3. If the price crossover any of the two resistance line it will give a buy alert and if price goes below any of the two resistance line sell alert will generate.\r\n4. There SL and target settings are also included in the code.\r\n\r\nI added some extra custom features to this. For more details contact 9148014455.","shortMessageHtmlLink":"Update PineScript_Strategy"}},{"before":"b232533dac5101a54bba5cfe2b62c5fbbc3ff6db","after":"19ee74c61c3f9a9b1e9c97af63417d6aac81669a","ref":"refs/heads/vSphere_Automation","pushedAt":"2024-05-09T09:27:12.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"siddartha1192","name":"Siddartha Kumar Das","path":"/siddartha1192","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/24792993?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"6855c70dfabfa007a3d3f002db9b91159686e6df","after":"b232533dac5101a54bba5cfe2b62c5fbbc3ff6db","ref":"refs/heads/vSphere_Automation","pushedAt":"2024-05-09T09:26:57.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"siddartha1192","name":"Siddartha Kumar Das","path":"/siddartha1192","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/24792993?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"28289f9dfb1796e941416a137b1e433d68ed61e8","after":"ef4f641f195329e163abb2f96e6efeb1d1078b49","ref":"refs/heads/Fyers_Zerodha_API_Trading_using_REST_Powershell","pushedAt":"2024-05-09T07:13:26.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"siddartha1192","name":"Siddartha Kumar Das","path":"/siddartha1192","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/24792993?s=80&v=4"},"commit":{"message":"Update Fyers v3 API functions","shortMessageHtmlLink":"Update Fyers v3 API functions"}},{"before":"1fa9ff7def6c607b6759da55cce439863dfc01ba","after":"28289f9dfb1796e941416a137b1e433d68ed61e8","ref":"refs/heads/Fyers_Zerodha_API_Trading_using_REST_Powershell","pushedAt":"2024-05-09T07:12:00.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"siddartha1192","name":"Siddartha Kumar Das","path":"/siddartha1192","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/24792993?s=80&v=4"},"commit":{"message":"Update and rename Fyers v3 Functions and BankNifty Strategy to Fyers v3 Login Funtion","shortMessageHtmlLink":"Update and rename Fyers v3 Functions and BankNifty Strategy to Fyers …"}},{"before":"17e5b7dc264cfaea82b56cfad7fc3234602fe713","after":"1fa9ff7def6c607b6759da55cce439863dfc01ba","ref":"refs/heads/Fyers_Zerodha_API_Trading_using_REST_Powershell","pushedAt":"2024-05-09T07:06:38.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"siddartha1192","name":"Siddartha Kumar Das","path":"/siddartha1192","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/24792993?s=80&v=4"},"commit":{"message":"Create Fyers v3 API functions\n\n\r\nfrom techbobbles.com\r\nBankNifty Option Buying strategy with Python and FyersAPI\r\n\r\n\r\nLast weekend, I delved into the world of trading with Python, specifically exploring the capabilities of the FYERS API. Inspired by the potential for algorithmic trading, I crafted a simple yet insightful price reference strategy tailored for trading BankNIFTY. In this forthcoming blog post, I'm excited to share my discoveries with you. From navigating the intricacies of the FYERS API to mastering order placements and tracking, I'll walk you through each step of the process. However, a crucial disclaimer: while this strategy serves as a valuable learning tool, I urge caution and advise against its use in real-time trading scenarios. Let's embark on this educational journey together, empowering beginners to craft their own trading algorithms with Python.\r\n\r\nThis code snippet automates the authentication process for accessing the FYERS API using Python. It initializes a web browser, navigates to the authorization URL, waits for the authorization code to be obtained, saves it to a text file, and then exchanges it for an access token. Finally, it initializes a client for interacting with the FYERS API. However, it could benefit from improved error handling and additional comments for clarity.\r\nfyers api trading strategy\r\n\r\nIn the next phase of refining my trading strategy utilizing the FYERS API, I crafted a series of custom functions aimed at facilitating seamless execution and management of trades. Here's a snapshot of the functions I've developed:\r\n\r\n1. close_all_positions: This function enables the systematic closure of all existing positions, providing a streamlined approach to managing portfolio exposure.\r\n\r\n2. close_position: Designed to close a specific position, this function offers targeted control over individual trades within the portfolio.\r\n\r\n3. get_openposition_id: With this function, traders can retrieve the unique identifier for each open position, facilitating precise tracking and management.\r\n\r\n4. cancel_all_open_orders: Offering a swift solution to cancel all pending orders, this function ensures agility in adjusting trade plans as market conditions evolve.\r\n\r\n5. place_SL_order, place_limit_order, place_market_order: These functions empower traders with versatile order placement options, including stop-loss, limit, and market orders, catering to diverse trading strategies.\r\n\r\n6. check_price_level : This function compare the current price of bank nifty index with the reference price and return the value to buy/sell or wait.\r\n\r\n7. get_ltp: By providing real-time access to price data, these functions enable traders to monitor market movements and make informed decisions.\r\n\r\n8. check_total_PNL: This function calculates the total profit and close the positions if the max profit or loss achieved.\r\n\r\n9. current_BN_ATM_CE, current_BN_ATM_PE: Tailored for options trading, these functions identify the current at-the-money call and put options for Bank NIFTY, aiding in strategy formulation.\r\n\r\n10. get_openposition_side: This function retrieves if the open position is a call buy or a put buy.\r\n\r\nThese functions collectively serve to enhance the flexibility, efficiency, and effectiveness of the trading strategy, empowering traders to execute with precision and confidence.\r\n\r\nIn the third stage of refining our trading strategy, let's delve into the core methodology we've devised for navigating the Bank NIFTY market. This is a option plain option buying strategy according to the price change. Here's a breakdown of the key steps involved:\r\n\r\n1. Reference Price Setup: To kickstart our strategy, we first fetch the current price of the Bank NIFTY index and designate it as our reference price.\r\n\r\n2. ATM Calls and Puts: Next, we retrieve the current at-the-money (ATM) call and put options for Bank NIFTY, laying the groundwork for our trade decisions.\r\n\r\n3. Continuous Price Tracking: We initiate a continuous monitoring process, checking the Bank NIFTY price at 30-second intervals to stay abreast of market movements.\r\n\r\n4. Buy Order Placement: Should the Bank NIFTY price surge above our reference price by 10 points, we swiftly execute a buy order for the ATM call option. If any prior orders exist, we close them before initiating the new trade.\r\n\r\n5. Sell Order Placement: Conversely, if the Bank NIFTY price dips below our reference price by 10 points, we promptly place a sell order for the ATM put option, again ensuring closure of any existing orders beforehand.\r\n\r\n6. Wait-and-Watch Strategy: While the Bank NIFTY price remains within the range of +/- 10 points from our reference price, we adopt a patient stance, awaiting a decisive movement in either direction.\r\n\r\n7. Profit and Loss Monitoring: At every 30-second interval, we diligently monitor our trade positions. If our profit reaches 5000, we opt to exit all active orders. Similarly, to mitigate losses, we've set a maximum loss threshold of 2000.\r\n\r\nThis comprehensive strategy leverages real-time market data and precise order execution to capitalize on favorable price movements while mitigating potential risks.","shortMessageHtmlLink":"Create Fyers v3 API functions"}},{"before":"3088b1f32ba6e52295a7005da1b11cd398d88dc9","after":"17e5b7dc264cfaea82b56cfad7fc3234602fe713","ref":"refs/heads/Fyers_Zerodha_API_Trading_using_REST_Powershell","pushedAt":"2024-05-09T07:03:20.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"siddartha1192","name":"Siddartha Kumar Das","path":"/siddartha1192","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/24792993?s=80&v=4"},"commit":{"message":"Create Fyers v3 Functions and BankNifty Strategy\n\nBankNifty Option Buying strategy with Python and FyersAPI\r\n\r\n\r\nI crafted a simple yet insightful price reference strategy tailored for trading BankNIFTY. In this post I'm excited to share my discoveries with you. From navigating the intricacies of the FYERS API to mastering order placements and tracking, I'll walk you through each step of the process. However, a crucial disclaimer: while this strategy serves as a valuable learning tool, I urge caution and advise against its use in real-time trading scenarios. Let's embark on this educational journey together, empowering beginners to craft their own trading algorithms with Python.\r\n\r\n\r\n\r\n Step One :\r\n\r\nThis code snippet automates the authentication process for accessing the FYERS API using Python. It initializes a web browser, navigates to the authorization URL, waits for the authorization code to be obtained, saves it to a text file, and then exchanges it for an access token. Finally, it initializes a client for interacting with the FYERS API. However, it could benefit from improved error handling and additional comments for clarity.\r\nfyers api trading strategy\r\n\r\n\r\n Step Two :\r\n\r\nIn the next phase of refining my trading strategy utilizing the FYERS API, I crafted a series of custom functions aimed at facilitating seamless execution and management of trades. Here's a snapshot of the functions I've developed:\r\n\r\n1. close_all_positions: This function enables the systematic closure of all existing positions, providing a streamlined approach to managing portfolio exposure.\r\n\r\n2. close_position: Designed to close a specific position, this function offers targeted control over individual trades within the portfolio.\r\n\r\n3. get_openposition_id: With this function, traders can retrieve the unique identifier for each open position, facilitating precise tracking and management.\r\n\r\n4. cancel_all_open_orders: Offering a swift solution to cancel all pending orders, this function ensures agility in adjusting trade plans as market conditions evolve.\r\n\r\n5. place_SL_order, place_limit_order, place_market_order: These functions empower traders with versatile order placement options, including stop-loss, limit, and market orders, catering to diverse trading strategies.\r\n\r\n6. check_price_level : This function compare the current price of bank nifty index with the reference price and return the value to buy/sell or wait.\r\n\r\n7. get_ltp: By providing real-time access to price data, these functions enable traders to monitor market movements and make informed decisions.\r\n\r\n8. check_total_PNL: This function calculates the total profit and close the positions if the max profit or loss achieved.\r\n\r\n9. current_BN_ATM_CE, current_BN_ATM_PE: Tailored for options trading, these functions identify the current at-the-money call and put options for Bank NIFTY, aiding in strategy formulation.\r\n\r\n10. get_openposition_side: This function retrieves if the open position is a call buy or a put buy.\r\n\r\n\r\n\r\n\r\nThese functions collectively serve to enhance the flexibility, efficiency, and effectiveness of the trading strategy, empowering traders to execute with precision and confidence. \r\n\r\n\r\n Step Three:\r\n\r\nIn the third stage of refining our trading strategy, let's delve into the core methodology we've devised for navigating the Bank NIFTY market. This is a option plain option buying strategy according to the price change. Here's a breakdown of the key steps involved:\r\n\r\n1. Reference Price Setup: To kickstart our strategy, we first fetch the current price of the Bank NIFTY index and designate it as our reference price.\r\n\r\n2. ATM Calls and Puts: Next, we retrieve the current at-the-money (ATM) call and put options for Bank NIFTY, laying the groundwork for our trade decisions.\r\n\r\n3. Continuous Price Tracking: We initiate a continuous monitoring process, checking the Bank NIFTY price at 30-second intervals to stay abreast of market movements.\r\n\r\n4. Buy Order Placement: Should the Bank NIFTY price surge above our reference price by 10 points, we swiftly execute a buy order for the ATM call option. If any prior orders exist, we close them before initiating the new trade.\r\n\r\n5. Sell Order Placement: Conversely, if the Bank NIFTY price dips below our reference price by 10 points, we promptly place a sell order for the ATM put option, again ensuring closure of any existing orders beforehand.\r\n\r\n6. Wait-and-Watch Strategy: While the Bank NIFTY price remains within the range of +/- 10 points from our reference price, we adopt a patient stance, awaiting a decisive movement in either direction.\r\n\r\n7. Profit and Loss Monitoring: At every 30-second interval, we diligently monitor our trade positions. If our profit reaches 5000, we opt to exit all active orders. Similarly, to mitigate losses, we've set a maximum loss threshold of 2000.\r\n\r\nThis comprehensive strategy leverages real-time market data and precise order execution to capitalize on favorable price movements while mitigating potential risks. \r\n\r\nReference :\r\n\r\nhttps://myapi.fyers.in/","shortMessageHtmlLink":"Create Fyers v3 Functions and BankNifty Strategy"}},{"before":"58def90e2b46ce46ef3883f4105080981f271325","after":"6855c70dfabfa007a3d3f002db9b91159686e6df","ref":"refs/heads/vSphere_Automation","pushedAt":"2023-05-19T11:31:20.115Z","pushType":"push","commitsCount":1,"pusher":{"login":"siddartha1192","name":"Siddartha Kumar Das","path":"/siddartha1192","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/24792993?s=80&v=4"},"commit":{"message":"Rename vRa 8.12 REST Login to vRa 8.12 Login PowerShell REST","shortMessageHtmlLink":"Rename vRa 8.12 REST Login to vRa 8.12 Login PowerShell REST"}},{"before":"7c89e3a3907a3765f7e08d55ec33aacdf6348001","after":"58def90e2b46ce46ef3883f4105080981f271325","ref":"refs/heads/vSphere_Automation","pushedAt":"2023-05-19T11:30:37.039Z","pushType":"push","commitsCount":1,"pusher":{"login":"siddartha1192","name":"Siddartha Kumar Das","path":"/siddartha1192","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/24792993?s=80&v=4"},"commit":{"message":"Rename vRa8_LoginAccessTokenCreation to vRa8_LoginAccessTokenCreation_vRo\n\nThis code will run on vRo and create the login token.","shortMessageHtmlLink":"Rename vRa8_LoginAccessTokenCreation to vRa8_LoginAccessTokenCreation…"}},{"before":"a5060fab8164af4dabb0fe655822ff79c84db017","after":"7c89e3a3907a3765f7e08d55ec33aacdf6348001","ref":"refs/heads/vSphere_Automation","pushedAt":"2023-05-19T11:26:12.452Z","pushType":"push","commitsCount":1,"pusher":{"login":"siddartha1192","name":"Siddartha Kumar Das","path":"/siddartha1192","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/24792993?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"15b34214329b84fbcf9a128fd7b02a8a34ed2985","after":"a5060fab8164af4dabb0fe655822ff79c84db017","ref":"refs/heads/vSphere_Automation","pushedAt":"2023-05-19T11:25:50.262Z","pushType":"push","commitsCount":1,"pusher":{"login":"siddartha1192","name":"Siddartha Kumar Das","path":"/siddartha1192","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/24792993?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"3f09d223c460ecaa669d3f1b052354595d492f66","after":"15b34214329b84fbcf9a128fd7b02a8a34ed2985","ref":"refs/heads/vSphere_Automation","pushedAt":"2023-05-19T11:18:20.009Z","pushType":"push","commitsCount":1,"pusher":{"login":"siddartha1192","name":"Siddartha Kumar Das","path":"/siddartha1192","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/24792993?s=80&v=4"},"commit":{"message":"Create vRa 8.12 REST Login\n\nThis script is for logging into vRa 8.X using PowerShell REST commands.","shortMessageHtmlLink":"Create vRa 8.12 REST Login"}},{"before":"e8d752b583ff6fc519d4a9c83f7b5cd7b633f846","after":"3f09d223c460ecaa669d3f1b052354595d492f66","ref":"refs/heads/vSphere_Automation","pushedAt":"2023-05-19T11:13:58.558Z","pushType":"push","commitsCount":1,"pusher":{"login":"siddartha1192","name":"Siddartha Kumar Das","path":"/siddartha1192","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/24792993?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"0f88ba1ecf087b1329628ecf912ade518f5cc0a1","after":"3088b1f32ba6e52295a7005da1b11cd398d88dc9","ref":"refs/heads/Fyers_Zerodha_API_Trading_using_REST_Powershell","pushedAt":"2023-03-23T19:47:40.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"siddartha1192","name":"Siddartha Kumar Das","path":"/siddartha1192","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/24792993?s=80&v=4"},"commit":{"message":"Get Open Interest\n\nThis script will give the total sum of call and put of BankNifty.","shortMessageHtmlLink":"Get Open Interest"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEUERjDQA","startCursor":null,"endCursor":null}},"title":"Activity · siddartha1192/Siddartha"}