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

[Course] Designing a Stock Market Trading Dashboard App using…

Designing a Stock Market App using Python is a hands-on course that guides you through the development of a functional stock market application. Over...
Rajandran R
1 min read

Exploring the Essential Python Libraries for Data Analytics

Python has emerged as a powerhouse due to its versatility, ease of use, and extensive library support. Whether you're manipulating data, visualizing trends, performing...
Rajandran R
3 min read

Integrating Tradingview Lightweight Charts with Yahoo Finance Data –…

Hey traders! If you’re looking for a way to visualize your stock data dynamically and interactively, you’re in for a treat. Today, we’ll explore...
Rajandran R
2 min read

Leave a Reply

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