Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A python script to automatically journal NSE stock trades by leveraging Interactive Broker email notifications for the buy/sell trades.

License

NotificationsYou must be signed in to change notification settings

ashleymavericks/notion-interactive-brokers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A python script to automatically journal NSE stock trades by leveraging Interactive Broker email notifications for the buy/sell trades.

Features:

  • Journal provides insights like Stock type (largecap/midcap....etc.), Sector, Industry for a given stock ticker
  • Auto update latest price and percentage change for ongoing trades
  • Display current loss/gain and realised loss/gain for a particular trade
  • Provides holding time period for each trade in Days
  • Classify trades to different categories based on percentage of loss/gain and holding period
  • Manage edge cases like partial buy/sell trades notifications

Requirements:

Interactive Brokers Account

pip3 install requests nsetools yfinance

API's Usage:

Notion Official API

Script Automation:

35 15 * * 1-5

Acron job running at 15:35 on every day-of-week from Monday through Friday, will gather all the buy/sell trades emails and journal them post market-closing.

P.S. In case, you wants to keep the current price updated for the ongoing trades, just grab the relevant section from themain.py and set a recurring cron job during the market hours.

About

A python script to automatically journal NSE stock trades by leveraging Interactive Broker email notifications for the buy/sell trades.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp