CyberPunkMetalHead / gateio-crypto-trading-bot-binance-announcements-new-coins

This is a crypto trading bot that scans the Binance Annoucements page for new coins, and places trades on Gateio
MIT License
1.21k stars 303 forks source link

Binance API returns info too late #90

Closed kamiljaworski975 closed 2 years ago

denzilsaldanha commented 2 years ago

I myself have been trying to write a bot that scrapes binance and then places a buy order.

I've found two sites where listings come out and they differ by abit. I'm starting to feel https://www.binance.com/en/support/announcement/c-0 might list annoucements first.

denzilsaldanha commented 2 years ago

Fair enough, yeah that would make sense. Server response should be faster than scraping an api. I wonder if the delay in your response is due to caching. Have you tried setting a no-cache header?

kamiljaworski975 commented 2 years ago

I haven't, I'll implement it. Basically I'm getting response like 50-200ms after call, but yeah there could be problem that my server is caching headers and sending the same response for some period of time. Need to verify it.