Skip to content

Commit 4eab3ef

Browse files
committed
feat(finance): add option-analysis package
Add Trakbit option-analysis tool for Indian options market analytics. Package built from source using Rust, provides keyboard-first TUI interface for designing option strategies with direct Upstox API integration.
1 parent e07eee4 commit 4eab3ef

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

home/tools/finance.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
tickrs
1010
cointop
1111
;
12+
inherit
13+
(pkgs.custom)
14+
option-analysis
15+
;
1216

1317
hisaab = pkgs.writeShellScriptBin "hisaab" ''
1418
if [ $# -eq 1 ]; then
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
lib,
3+
rustPlatform,
4+
fetchFromGitHub,
5+
pkg-config,
6+
openssl,
7+
...
8+
}:
9+
rustPlatform.buildRustPackage {
10+
pname = "option-analysis";
11+
version = "0.1.0";
12+
13+
src = fetchFromGitHub {
14+
owner = "harsh-vardhhan";
15+
repo = "option-analysis";
16+
rev = "master";
17+
hash = "sha256-QOWZOvW9bqzFxZkUaWB0+sUVruhq7rFlttAq3EcDLa4=";
18+
};
19+
20+
cargoHash = "sha256-bIP40cfMNrekqXotKzfMZSb+sfoQQ0ybiLBBrrU8vUQ=";
21+
22+
nativeBuildInputs = [
23+
pkg-config
24+
];
25+
26+
buildInputs = [
27+
openssl
28+
];
29+
30+
doCheck = false;
31+
32+
meta = {
33+
description = "Trakbit - Keyboard-first options analytics tool for Indian markets";
34+
homepage = "https://github.com/harsh-vardhhan/option-analysis";
35+
license = lib.licenses.mit;
36+
platforms = lib.platforms.all;
37+
maintainers = with lib.maintainers; [DivitMittal];
38+
mainProgram = "option-analysis";
39+
};
40+
}

0 commit comments

Comments
 (0)