Loading video...

Video Failed to Load

Go Home

Polymarket Market Making algorithm with ultra low latency on 15 min crypto markets.

98,138 views • 8 months ago •via X (Twitter)

58 Comments

Rōga's profile picture
Rōga8 months ago

bro connected ws and thinks he is hft now

Leo Margolis's profile picture
Leo Margolis8 months ago

100%

David Nobel's profile picture
David Nobel8 months ago

> Ultra low letancy > Python and WS choose one sir.

Leo Margolis's profile picture
Leo Margolis8 months ago

I am still working to make it faster but this is the fastest I have gotten it to run

David Nobel's profile picture
David Nobel8 months ago

you will still end up being restricted by the latency of the cloudflare endpoint you are hitting, when your theoretical minimum latency you should be aiming for is being included in the next block after the block you detect your opportunity on imo

Leo Margolis's profile picture
Leo Margolis8 months ago

super cool thanks

Cody White's profile picture
Cody White8 months ago

@dnobel22 > ultra low latency > emojis in the logs

Leo Margolis's profile picture
Leo Margolis8 months ago

@dnobel22 I have those because it helps visualize the execution what is getting orderbook data vs placing orders at x price

BrokerQuant's profile picture
BrokerQuant8 months ago

Ah yes, let’s print everything to console when we run Ultra Low Latency code

Leo Margolis's profile picture
Leo Margolis8 months ago

lol its really just to help with the visual

BrokerQuant's profile picture
BrokerQuant8 months ago

Do post the profile though to see how this unfolds - build in public, trade in public

Leo Margolis's profile picture
Leo Margolis8 months ago

I post this stuff but posting my address would compromise my strats and then all my edge would be gone so I stick to posting the structure stuff rather than the trading itself

BrokerQuant's profile picture
BrokerQuant8 months ago

Unless it’s something super obscure, the value hardly ever lies in the idea of a strategy, but rather it’s execution. Addresses are public anyways and should be rotated to hide alpha leakage. Anyhow, enough seriousness - time to get back to shitposting

Leo Margolis's profile picture
Leo Margolis8 months ago

unfortunately a couple of my very profitable strats r very susceptible to someone figuring it out and beating me. One of my main ones that I found last spring made me 2700% over about 500 trades but then other people started to figure it out and now I have way less opportunity to get good fills using that strat

BrokerQuant's profile picture
BrokerQuant8 months ago

Strategies with outsized performance have faster alpha decay, and as markets mature, trivial strategies are Arb‘d out. Generally an indicator that the idea isn’t very unique, but execution to get it into production faster was. Rotate the addresses and post your dead alpha address

ziggy's profile picture
ziggy8 months ago

>ultra low latency >python bot printing to terminal ????

Leo Margolis's profile picture
Leo Margolis8 months ago

@onchainziggy Im still working on it but it is the fastest mming algo I have made

HypingBull's profile picture
HypingBull8 months ago

People in comments really don’t understand that on Polymarket you can’t have super low latency. Trading from USA servers is prohibited. You can’t have a server in USA because of this. Maybe only some big MM have the privilege to trade from US, but it’s the private deals…

Leo Margolis's profile picture
Leo Margolis8 months ago

yea and the biggest speed constraint is on their end and beyond stuff I can optimize

5x8's profile picture
5x88 months ago

Ultra low is the 100ms?

Leo Margolis's profile picture
Leo Margolis8 months ago

I have had some orders get 50 but yea my best is im still working on getting it down

cryptochinchilla's profile picture
cryptochinchilla8 months ago

@flyinghigh88888 Fyi, ultra low latency refers to competition in terms of nanoseconds

Leo Margolis's profile picture
Leo Margolis8 months ago

@flyinghigh88888 yes title is a bit misleading but this speed has been fast enough for my needs on polymarket

DGN Quant's profile picture
DGN Quant8 months ago

“Ultra low latency”

Leo Margolis's profile picture
Leo Margolis8 months ago

The reason it is not super fast is due to how polymarket processes order through their CLOB something I cannot influence

DGN Quant's profile picture
DGN Quant8 months ago

no the reason it’s slow is you have one billion prints on the hot path

Leo Margolis's profile picture
Leo Margolis8 months ago

that contributes but the main issue is how the clob functions

Allora's profile picture
Allora8 months ago

👀

commodiac's profile picture
commodiac8 months ago

This is certainly not ultra low latency and not even low latency in hft. Your latency is O(~100ms). that is fine and actually this is what is nice about polymarket. It is not a HFT venue, yet.

Leo Margolis's profile picture
Leo Margolis8 months ago

Yes your right I should have been more specific

Beard💈's profile picture
Beard💈8 months ago

I’m 27ms to post and still not profitable they be fast on polymarket bro lol NJ tho. Hope you can shred them in trying my best too haha

hamzah's profile picture
hamzah8 months ago

been testing a few things as well.

Francisco Amadeo's profile picture
Francisco Amadeo8 months ago

Is it making any money?

Leo Margolis's profile picture
Leo Margolis8 months ago

Yes

Francisco Amadeo's profile picture
Francisco Amadeo8 months ago

Good job brother!

Trent Kelly's profile picture
Trent Kelly8 months ago

I'm positive you vibe coded this because of the emojis

WASSIE's profile picture
WASSIE8 months ago

thats quite an achievement for latency

Kevin2K's profile picture
Kevin2K8 months ago

that’s an alpha

reverend_renegade❤️'s profile picture
reverend_renegade❤️8 months ago

Not sure if you run it remotely or locally but you could use claude to run a ping test on the rest & ws endpoints then refine further by setting up cheap vps servers in each availability zone to reap the benefits of colocation

bunchu's profile picture
bunchu8 months ago

How to get latency super low?

joshenglish.eth's profile picture
joshenglish.eth8 months ago

Rust executes faster imho, but looks great!

Luis's profile picture
Luis8 months ago

What VPS service are u using?

Leisen's profile picture
Leisen8 months ago

low latency OP

AdiiX's profile picture
AdiiX8 months ago

Can you explain how this works?

Truong Pham (Henry)'s profile picture
Truong Pham (Henry)8 months ago

Lol, meme

r4dl3's profile picture
r4dl38 months ago

How do you get the "size" from the "price_change" event 😉😉😉

Dayong Li's profile picture
Dayong Li8 months ago

how do you get the actual position shares amount after fee,I use query position,but it has big latency

Vlas Pototskyi's profile picture
Vlas Pototskyi8 months ago

Lying

自由's profile picture
自由8 months ago

Is 4ms enough?

SteelHard's profile picture
SteelHard8 months ago

I'm testing some stuff myself, outside of the crypto market. Basically checking for spreads and setting low limit orders with decent spreads and then placing it up to sell for the lowest ask price whenever the bid fills up. Any tips to improve setup? Barely get any fills tbh

Zerati's profile picture
Zerati8 months ago

Wich latency are you talking about ?

STONE🐦‍⬛🪨's profile picture
STONE🐦‍⬛🪨8 months ago

Which websocket is that

seeyuh✌️'s profile picture
seeyuh✌️8 months ago

Let me guess this on node.js

Mauro Delazeri's profile picture
Mauro Delazeri8 months ago

@grok make the real image of a chinese dune in their basement “low latency on 15m”

Marc ★'s profile picture
Marc ★8 months ago

manifesting

willy.zcash's profile picture
willy.zcash8 months ago

How far away do you live from the nodes and servers? (Or does your VPS)

vik's profile picture
vik8 months ago

is it accounting for the new taker fees?

JD20's profile picture
JD208 months ago

U cant make fast bot or what

Related Videos