Nivoda + Python + Excel: Automating Market Price Fetching

satya bollojusatya bolloju
2 min read

I built a Python automation script to read diamond inventory from an Excel file, sends queries to the Nivoda API for market prices, and writes the price and price per carat back into the Excel file.


πŸ” What It Does

  • Reads Excel inventory file

  • Sends a GraphQL query to the Nivoda API for each row

  • Retrieves PricePerCarat and Price

  • Writes those back into the same Excel file

Perfect for quick price audits, sourcing decisions, and reducing manual work.


πŸ’» Tech Stack

  • Python

  • openpyxl

  • requests

  • GraphQL

  • Excel Automation


πŸ“¦ Input Format

Columns: B (Shape), D (Weight), E (Color), F (Clarity)
Output Columns: N (Price/ct), O (Total Price)

🧠 Code Highlights

  • Authenticated API token via headers

  • GraphQL query built dynamically per row

  • Excel updated live with new pricing


πŸ”— GitHub

πŸ‘‰ nivoda-excel-fetcher


⚑ Results

βœ… Transformed hours of manual filtering
βœ… Accurate live pricing from Nivoda
βœ… Reusable and easily extended


πŸ‘¨β€πŸ’» About Me

I’m a Data Analyst at Sheetal Manufacturing Co.
Currently pursuing MSc in Data Science from Symbiosis.

πŸ”— Connect with me on LinkedIn


πŸ™Œ Let’s Collaborate

If you liked this, feel free to:

  • Fork the repo

  • Suggest improvements

  • Drop a comment β€” I’d love to connect with fellow automation nerds πŸ˜„

0
Subscribe to my newsletter

Read articles from satya bolloju directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

satya bolloju
satya bolloju