How farooq13/tradary works
Tradary is an Anchor/Solana on-chain trading journal. A wallet initializes a profile, then creates tagged trade records, can append notes while trades are open, and closes trades to record realized PnL and update aggregate statistics. The account layer stores user profiles, trades, and tags as separate on-chain accounts. The README is empty; edges reflect only the supplied instruction and account excerpts. The profile-update instruction is included, but its specific effects are not inferred from its path alone.
Main entry points: user_account.rs User profile and stats · create_trade.rs Create trade · close_trade.rs Close trade · create_tag.rs Create tag
Components 10
Journal operations
- Initialize profile
programs/tradary/src/instructions/initialize_user.rs - Update profile
programs/tradary/src/instructions/update_user_profile.rs - Create trade
programs/tradary/src/instructions/create_trade.rs - Close trade
programs/tradary/src/instructions/close_trade.rs - Append notes
programs/tradary/src/instructions/add_trade_notes.rs - Create tag
programs/tradary/src/instructions/create_tag.rs
On-chain records
- User profile and stats
programs/tradary/src/state/user_account.rs - Trade record
programs/tradary/src/state/trade_account.rs - Trade tag
programs/tradary/src/state/tag_account.rs
Other components
- Trader wallet
Connections 13
- Trader wallet → Initialize profile: initializes
programs/tradary/src/instructions/initialize_user.rs - Initialize profile → User profile and stats: creates
programs/tradary/src/instructions/initialize_user.rs - Trader wallet → Create trade: creates
programs/tradary/src/instructions/create_trade.rs - Create trade → Trade record: creates
programs/tradary/src/instructions/create_trade.rs - Create trade → User profile and stats: increments counter
programs/tradary/src/instructions/create_trade.rs - Trader wallet → Close trade: closes
programs/tradary/src/instructions/close_trade.rs - Close trade → Trade record: records exit
programs/tradary/src/instructions/close_trade.rs - Close trade → User profile and stats: updates stats
programs/tradary/src/instructions/close_trade.rs - Trader wallet → Append notes: appends notes
programs/tradary/src/instructions/add_trade_notes.rs - Append notes → Trade record: updates notes
programs/tradary/src/instructions/add_trade_notes.rs - Trader wallet → Create tag: creates tag
programs/tradary/src/instructions/create_tag.rs - Create tag → Trade tag: creates
programs/tradary/src/instructions/create_tag.rs - Create tag → User profile and stats: increments count
programs/tradary/src/instructions/create_tag.rs