Skip to content

Instantly share code, notes, and snippets.

View nazariyv's full-sized avatar
🔭
You study mathematics because it is the poetry of the universe

naz nazariyv

🔭
You study mathematics because it is the poetry of the universe
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nazariyv
nazariyv / PriceLimitSim.ipynb
Created June 25, 2025 18:23 — forked from sebjai/PriceLimitSim.ipynb
Algo Trading Book Price Limiter (Chapter 7.2 of of Algorithmic and High-Frequency Trading by Cartea, Jaimungal, Penalva, published by Cambridge University Press)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nazariyv
nazariyv / short_term_alpha.ipynb
Created June 25, 2025 18:24 — forked from sebjai/short_term_alpha.ipynb
Market Making in Short-Term Alpha (Chapter 10.4.2 of Algorithmic and High-Frequency Trading by Cartea, Jaimungal, Penalva, published by Cambridge University Press)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nazariyv
nazariyv / OrderFlow.ipynb
Created June 25, 2025 18:25 — forked from sebjai/OrderFlow.ipynb
Optimal trading with order-flow and short-term alpha
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nazariyv
nazariyv / TargetPercent_MarketSpeed.ipynb
Created June 25, 2025 18:25 — forked from sebjai/TargetPercent_MarketSpeed.ipynb
Optimal execution with a percentage of volume target (Chap 9.2 of Algorithmic and High-Frequency Trading (c) Cartea, Jaimungal, & Penalva 2015 Cambridge University Press)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nazariyv
nazariyv / Liquidation_Permanent_Price_Impact.ipynb
Created June 25, 2025 18:26 — forked from sebjai/Liquidation_Permanent_Price_Impact.ipynb
Optimal Execution with linear and non-linear impact. Chapter 6 of Algorithmic and High-Frequency Trading (c) Cartea, Jaimungal, & Penalva, 2015 Cambridge University Press
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nazariyv
nazariyv / quote.rs
Last active October 6, 2025 22:22 — forked from mubarizkyc/quote.rs
Meteora Dlmm Quote Math
use super::bin_array::{Bin, BinArray};
use super::lb_pair::{LbPair, LbPairExtension};
use crate::commons::WSOL_MINT;
use arrayvec::ArrayVec;
use pinocchio::{
account_info::AccountInfo, msg, program_error::ProgramError, pubkey::Pubkey, sysvars::Sysvar,
sysvars::clock::Clock,
};
use spl_token_2022::{
self,