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
@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,
@nazariyv
nazariyv / patch.sh
Created August 26, 2025 17:07
nerd patching fonts
out=~/Desktop/BerkeleyMonoPatched
rm -rf "$out"; mkdir -p "$out"
for f in ~/Library/Fonts/BerkeleyMono-*.otf; do
fontforge -script ~/.nerd-fonts/font-patcher \
--complete --name filename --outputdir "$out" "$f"
done
@nazariyv
nazariyv / create_new_user.sh
Created August 4, 2025 13:53
new-ubuntu-user-creation-steps
# 1 Create a dedicated user
sudo adduser new_username # choose a strong password
# 2 Let that user sudo *only* when really needed
sudo usermod -aG sudo new_username
# 3 Switch to it
su - new_username
# 4 Copy your SSH key so you can log in directly
@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 / 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 / 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 / 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 / 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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.