I wanted to know one thing: when several books list the same CS2 player prop, how often do they disagree?
I pulled the live board today and wrote the check in 17 lines. This is the whole script:
python
import os
import requests
r = requests.get(
"https://kashrock.up.railway.app/v7/cs2/props",
headers={"X-API-Key": os.environ["KASHROCK_API_KEY"]},
params={"board": "dfs", "view": "groups", "limit": 30},
timeout=15,
)
r.raise_for_status()
data = r.json()
for g in data["groups"]:
lines = [o["line"] for o in g["dfs"] if o.get("line") is not None]
books = {o["book_name"] for o in g["dfs"]}
if len(books) > 1 and max(lines) != min(lines):
print(g["player_name"], g["stat_type"], min(lines), "to", max(lines))
view=groups puts every book's offer for the same player and stat in one group, so there's nothing to match by hand.
aimy CS2_KILLS_MAPS_1_2 30.5 to 31.5
aimy CS2_HEADSHOTS_MAPS_1_2 17.5 to 18.5
saizius CS2_KILLS_MAPS_1_2 27.5 to 28.5
One kill is a big gap on a line like 30.5.
That's the kind of difference you can only spot if the books are already grouped.
You can get a free key at https://www.kashrock.com/console?utm_source=devto&utm_medium=social&utm_campaign=cs2_props_python_tutorial&utm_content=body_key
(1,500 credits a day, no card).
What would you check next: line movement over time, or how fast each book updates?