Skip to content

Instantly share code, notes, and snippets.

View mattj161's full-sized avatar
💭
I may be slow to respond.

mattj161

💭
I may be slow to respond.
View GitHub Profile
@mattj161
mattj161 / liquidation_calculator.py
Last active September 18, 2023 14:39
Binance liquidation calculator (based
# BTC-USDT
x125_lookup_table = [
( 50_000, 0.004, 0),
( 250_000, 0.005, 50),
( 1_000_000, 0.01, 1_300),
( 10_000_000, 0.02, 16_300),
( 20_000_000, 0.05, 266_300),
( 50_000_000, 0.1, 1_266_300),
( 100_000_000, 0.125, 2_516_300),