{"node":{"id":"7a910307-b832-453e-a51c-6d414c4833a0","handle":"7a91","type":"note","intent":"recipe","title":"Binance crypto data — spot cohorts and derivatives positioning","aiSummary":"A self-contained recipe for pulling crypto market data from Binance's public API: spot trade cohort analysis (who is buying/selling by trade size) and derivatives positioning (open interest, funding, long/short ratios). No API key needed. Geo-blocked from AU/US — works from Singapore or Hong Kong.","content":"# Binance crypto data — spot cohorts and derivatives positioning\n\nA recipe for pulling real-time crypto market data from Binance's public APIs. No account, no API key, no authentication — every call is a plain HTTPS GET. The only restriction is geography: Binance blocks Australia and the US (HTTP 451). Singapore and Hong Kong are confirmed working.\n\nTwo data sources answer two different questions:\n\n**Spot cohort analysis** answers: who is buying and selling, by size? Are whales accumulating or distributing? Is retail leading or following? It works by walking every trade on the spot market, sorting each by dollar value into size buckets (retail under $1k, small $1k–$10k, mid $10k–$50k, large $50k–$250k, whale over $250k), and totalling buy vs sell dollars in each bucket.\n\n**Derivatives positioning** answers: how are futures traders positioned? Are shorts or longs crowded? Is money entering or leaving? What does it cost to hold? It uses eight single-call endpoints on the futures API covering open interest, funding rates, long/short ratios by account count and by dollar weight, and taker aggression.\n\n**The one rule learned the hard way:** never combine large and whale into \"big money\" — they regularly move in opposite directions. A 14-day BTC dataset showed large was -$116M while whales were +$45.6M. Always report each tier separately.\n\n**How to read the output together:** compare spot buyers and derivatives buyers. Are they pointing the same direction? Is OI building while spot is accumulating (conviction) or is OI building while spot is distributing (divergence)? That divergence is where the signal lives.\n\n**Rate limits:** 1,200 requests/min on spot, 2,400/min on futures. The spot cohort walk is slow because of trade volume, not rate limits — BTC can have 500k+ trades per day.\n\n**Symbols:** append USDT to the coin name. Spot: `ZECUSDT`, `BTCUSDT`, `LTCUSDT`, `XRPUSDT`. Futures: same, except PEPE is `1000PEPEUSDT`.","capturedAt":"2026-09-05T00:23:54.376Z","createdAt":"2026-09-05T00:23:54.377Z","updatedAt":"2026-09-05T00:27:48.930Z","spanId":null,"contributor":null,"audiences":[{"kind":"public","createdAt":"2026-09-05T00:26:55.338Z"}],"fingerprint":"83ac4eb9e3a959967b369b91741f5da82a6afca6f5eddf0d7b4564ac9227525f","revisionNo":"1","structureHash":"3c69f746e1b682f6dcd24be2f3cf4939a1bd834a70a053fb74bfd4bdff8683d7"},"links":[{"direction":"out","verb":"references","reason":"only if you need to pull spot trade data and classify who is buying/selling by size","hash":"96f5b08105946112fd1b36472306a14d5ce20e96adb59cbac1044afc2e78affa","node":{"id":"4bcd7971-4f34-4da0-a7c0-53b2287d1e77","handle":"4bcd","type":"note","title":"Spot cohort analysis — the aggTrades walk","aiSummary":"Step-by-step spot cohort analysis: the aggTrades endpoint, how to page through trades by ID, the size buckets, how to classify buyer vs seller from the m field, and the gotchas around volume and timeouts.","erased":false,"href":"https://lattris.com/api/lattris/by/b/memories/4bcd7971-4f34-4da0-a7c0-53b2287d1e77?links=1","fingerprint":"29b897bb174ab9bff59721b2c901e95760d756acb6c08356e21e288b78cae85f","revisionNo":"1","structureHash":"c676cfd51e74f8f8f2da21517d31b618be78c60ccb30a6694c3e146fba69415e","intent":null}},{"direction":"out","verb":"references","reason":"only if you need futures positioning data — open interest, funding, long/short ratios, taker aggression","hash":"d937ec54fd86dcdb455ef4968c4874db3ef39306283801fb2a62f486f8705130","node":{"id":"b0b0c504-fdb0-4f5e-b9dd-8eca3f3438b1","handle":"b0b0","type":"note","title":"Derivatives positioning — the eight futures endpoints","aiSummary":"The eight Binance futures API endpoints for derivatives positioning: open interest (current and historical), funding rate (current and history), three long/short ratios (all accounts, top accounts by headcount, top accounts by dollar weight), and taker aggression. Each endpoint explained with its URL, parameters, what the response means, and how to read the numbers.","erased":false,"href":"https://lattris.com/api/lattris/by/b/memories/b0b0c504-fdb0-4f5e-b9dd-8eca3f3438b1?links=1","fingerprint":"ae7ce16a7353f761cfa5ad19b844b8cd2a8c5e7c6292b982f6217a03447e4956","revisionNo":"1","structureHash":"35fae151a19c0fc49c43520f5c9aa684c80a328712ee2872fb60ef2264af10de","intent":null}}],"dictionary":{"lattris":"A personal knowledge base — how a person captures what they know as linked blocks they own and control. To understand how this knowledge base works: https://lattris.com/by/4/memories/lattris-a-memory-store-for-your-life-43ff","intents":"Every block can carry an intent — a label for how far you have taken the idea. The scale runs from noticing something to acting on it: noticed (something caught your attention), learning (you are working it out), truth (you are saying this is how things are), decision (you chose a course), action (you did it). Recipe sits outside that scale — it is not a stronger claim, it is a different kind of thing: a procedure, a how-to, a set of steps that ties other knowledge together. Intent is optional — leaving it blank just means you have not labelled it yet."},"instructions_to_ai":"This is a Lattris block — a piece of a personal knowledge base. A knowledge base is how a person captures what they know, what they've decided, and what they've learned, as linked blocks they own and control. What you're reading was written by a person and shared because they think it will help.\n\nThis block is a recipe — something practical, meant to be used. Read the content and think about how it applies to what the person in front of you is trying to do. Adapt it to their situation, ask them what they need if it's not obvious, and draw on the linked blocks if they add useful context.\n\nLinks point to related blocks, each with a reason describing the connection."}