Rajandran R Creator of OpenAlgo - OpenSource Algo Trading framework for Indian Traders. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Building Algo Platforms, Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in

Use Google Gemini Pro as your AI Coding Assistant in Visual Studio Code Editor

1 min read

The Google Gemini Pro API, with its release in December 2023, marked a significant advancement in the field of AI for developers. It’s designed to assist in various aspects of coding and development, making it a valuable tool for those looking to integrate advanced AI capabilities into their applications.

Google AI Studio and Google Cloud Vertex AI are platforms provided by Google to access and utilize the Gemini Pro API

To obtain a Google Gemini Pro API key, you need to follow a series of steps that begin with registering for API access on Google’s developer platform. Here’s a general outline of the process:

Install Visual Studio Code: If you haven’t already, download and install Visual Studio Code (VS Code)

Obtain a Google Gemini API Key:

  • Visit the Google AI website, typically at ai.google.dev.
  • Click on Get API key in Google AI Studio
  • Goto the Google AI Studio and click on Get API Key and generate a new API key for the Gemini API. This may involve creating a project and enabling the Gemini API for that project.
  • Once generated, copy the API key for later use.

Install the Code GPT Extension in VS Code:

  • Open VS Code.
  • Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or by pressing Ctrl+Shift+X.
  • In the Extensions view, search for “Code GPT” which supports Google Gemini and various other LLM models like OpenAI, Mistral,Anthropic etc.
  • Find the correct extension (it might be named something like “Code GPT:Chat & AI Agents”) and click on the ‘Install’ button.

Configure the Code GPT Extension to access Gemini API

Open the Chat Box from the Left sidebar and Configure the Provide as Google AI Studio and Model as gemini-pro

Once the Configuration is done it will be asking for Gemini API Key. If not goto the Set Connection as shown below and Enter the copied Gemini API Key.

Use the Chat Box to Access the Coding Prompts and Get your prompts converted into Code.

Keep your VS Code and the extension updated to ensure compatibility and access to the latest features.

You can also use the CodeGPT Extension to Fix the bug/ troubleshoot your code, prepare documentation and even as a code explainer. Bascially Gemini Pro API will be acting as your coding assistance along with you in increasing your coding productivity. This makes it an essential tool for anyone looking to harness the power of AI in coding and application development.

Rajandran R Creator of OpenAlgo - OpenSource Algo Trading framework for Indian Traders. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Building Algo Platforms, Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in

How I Built a Telegram AI Stock Assistant Using…

In this post, I'll walk you through the process of creating an intelligent Telegram AI assistant, StockBot, using the Llama 3 Groq tool use...
Rajandran R
1 min read

[Course] Building Stock Market Based Telegram Bots using Python

Learn how to build powerful Telegram bots for the stock market using Python. This hands-on course guides you through creating bots that fetch real-time...
Rajandran R
1 min read

Understanding Object-Oriented Programming (OOP) Concepts in Python for Traders…

For traders and investors, having well-structured code can greatly improve the efficiency and manageability of trading applications. Object-Oriented Programming (OOP) in Python offers a...
Rajandran R
3 min read

Leave a Reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More