该用户的聊天记录定位。
annnnnnnnnnnd I found a bug
annnnnnnnnnnd I found a bug
Now I'm sus AF about my changes lol
Now I'm sus AF about my changes lol
<@378727998121181184> think you might've been onto something with the latency lol My bot is finding much fewer "profitable" moments, but is seemingly way more accurate now.
<@378727998121181184> think you might've been onto something with the latency lol My bot is finding much fewer "profitable" moments, but is seemingly way more accurate now.
What are the scams people are running in here? I already got like 5 friend requests from "Kalshi Support" when I joined the discord lol
What are the scams people are running in here? I already got like 5 friend requests from "Kalshi Support" when I joined the discord lol
I had a 100ms delay baked in so it was fine, but now I gotta worry about how much data I'm storing because it basically 5x'd the sample rate.
I had a 100ms delay baked in so it was fine, but now I gotta worry about how much data I'm storing because it basically 5x'd the sample rate.
Now I have backpressure on my orderbook persistence lol ...so thanks a lot 😂
Now I have backpressure on my orderbook persistence lol ...so thanks a lot 😂
https://tenor.com/view/bradley-cooper-gif-4797370
https://tenor.com/view/bradley-cooper-gif-4797370
it's now averaging like 20µs (microseconds)
it's now averaging like 20µs (microseconds)
<@378727998121181184> binary search dropped it down to sub ms lololol
<@378727998121181184> binary search dropped it down to sub ms lololol
Either you're doing something wrong (too many subs or bad commands) or you're not replying to heartbeats...or you're getting rate limited.
Either you're doing something wrong (too many subs or bad commands) or you're not replying to heartbeats...or you're getting rate limited.
Kalshi's probably closing it.
Kalshi's probably closing it.
Google is e z my guy 😛
Google is e z my guy 😛
<@351839065919979530> JK you're not handling closed socket: ``` The ConnectionError: [Errno 9] Bad file descriptor error occurs because your program is trying to read, write, or perform an operation on a network network socket that has already been closed. ```
<@351839065919979530> JK you're not handling closed socket: ``` The ConnectionError: [Errno 9] Bad file descriptor error occurs because your program is trying to read, write, or perform an operation on a network network socket that has already been closed. ```
You're probably not checking the message before you deserialize or something and it's breaking on invalid json
You're probably not checking the message before you deserialize or something and it's breaking on invalid json
<@378727998121181184> put a basic stopwatch on my main loop...latency is ~190ms right now, but can heavily reduce it with a binary search enumerating 700k rows of data is kind of a performance hit lolol
<@378727998121181184> put a basic stopwatch on my main loop...latency is ~190ms right now, but can heavily reduce it with a binary search enumerating 700k rows of data is kind of a performance hit lolol
that's how hedge funds work, right?
that's how hedge funds work, right?
in theory if people are biased, random bets should make money lol
in theory if people are biased, random bets should make money lol
I still haven't ruled out the "buy every market at random" strat yet
I still haven't ruled out the "buy every market at random" strat yet
...based on the very statistically significant window of ~1 hour the last time it happened
...based on the very statistically significant window of ~1 hour the last time it happened
My bot does perform best in these situations.
My bot does perform best in these situations.
stop breaking the websockets
stop breaking the websockets
yeah spaceX IPO so volatility is insane as market liquidates/buys
yeah spaceX IPO so volatility is insane as market liquidates/buys
someone earlier said to check the metadata object/property and see if it's in there
someone earlier said to check the metadata object/property and see if it's in there
Had that happen with a game server I was working on
Had that happen with a game server I was working on
AWS free tier expires after ~6 months
AWS free tier expires after ~6 months
Agreed.
Agreed.
That being said though...if you're not making +$400/month on your bot, why are you running it in the first place? 😛
That being said though...if you're not making +$400/month on your bot, why are you running it in the first place? 😛
Cloud prices stupid high nowadays.
Cloud prices stupid high nowadays.
Not hard to up the docker container to AWS. No reason to pay for a box when I'm still debugging it all.
Not hard to up the docker container to AWS. No reason to pay for a box when I'm still debugging it all.
Are y'all running the tightest boxes possible? lol Otherwise, RAM/memory concerns are moot in 2026.
Are y'all running the tightest boxes possible? lol Otherwise, RAM/memory concerns are moot in 2026.
It's free if you got some like 5 years ago
It's free if you got some like 5 years ago
deserialization on WS is unavoidable
deserialization on WS is unavoidable
RAM is free 🙂
RAM is free 🙂
It's a .NET channel made for multithreading. It's basically free. There's no serialization at all.
It's a .NET channel made for multithreading. It's basically free. There's no serialization at all.
You mean like the diff between contracts opening versus the actual IRL event starting?
You mean like the diff between contracts opening versus the actual IRL event starting?
annnnnnd you only gotta last until the maintenance window 😂
annnnnnd you only gotta last until the maintenance window 😂
and it keeps the incoming data flowing
and it keeps the incoming data flowing
Memory is cheap lol
Memory is cheap lol
yes, but it solves the backpressure issue from the WS perspective
yes, but it solves the backpressure issue from the WS perspective
it's in the market api "open_time"
it's in the market api "open_time"
challenge accepted
challenge accepted
https://tenor.com/view/smart-gif-9596539
https://tenor.com/view/smart-gif-9596539
I guess you can get sub ms net latency if you host a box in the same aws region
I guess you can get sub ms net latency if you host a box in the same aws region
What's your latency to the servers then? lol
What's your latency to the servers then? lol
I'll measure my actual latency though eventually. It's definitely low enough for what I'm doing.
I'll measure my actual latency though eventually. It's definitely low enough for what I'm doing.
Idk how you'd have the rate limit to manage microseconds worth of orders. You're still gonna have ms level latency over the net to kalshi.
Idk how you'd have the rate limit to manage microseconds worth of orders. You're still gonna have ms level latency over the net to kalshi.
I don't see the appeal of using multiple boxes. Just beef up the one box and spread the threads.
I don't see the appeal of using multiple boxes. Just beef up the one box and spread the threads.
You only have to do that once unless your doing it over the net. If it's same box, then there's no packing at all. + you can use something like grpc or roll some custom binary serialization for pretty cheap
You only have to do that once unless your doing it over the net. If it's same box, then there's no packing at all. + you can use something like grpc or roll some custom binary serialization for pretty cheap
Packing in what sense? Serialization?
Packing in what sense? Serialization?
It might even contain last price after close. You can check on a closed market to see if it's filled.
It might even contain last price after close. You can check on a closed market to see if it's filled.