[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-774":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":10,"languages":10,"totalLinesOfCode":10,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":14,"forks30d":14,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":14,"starSnapshotCount":14,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},774,"BTC-Trading-Since-2020","bwjoke\u002FBTC-Trading-Since-2020","bwjoke","Public BTC trading context since 2020.","https:\u002F\u002Fx.com\u002Fcoolish",null,1159,355,3,0,5,12,205,15,20.65,false,"main",true,[24,25,26,27,28,29],"bitcoin","bitmex","crypto","dataset","open-intelligence","trading","2026-06-12 02:00:18","# BTC-Trading-Since-2020\n\n>[English](README.md) | [中文](README.zh-CN.md)\n\nIn the AI era, high-quality context becomes the most scarce asset.\nThis repository is an open-intelligence experiment: a public, inspectable, and continuously extensible mirror of a real trading account. It spans nearly six years, 43k+ orders, and 173k+ execution rows.\nThe internet likely has no comparable public repository that continuously exposes the full multi-year secondary-market history of a predominantly BTC-trading account at this level of detail.\n\n**This archive is more about decision quality under uncertainty than prediction quality over price.**\n\n![Cumulative performance](cumulative-performance.png?v=b642b68b1500)\n\nBitMEX recognized Paul Wei ([`@coolish`](https:\u002F\u002Fx.com\u002Fcoolish)) as one of its 11th anniversary Legends and, on its public Hall of Legends page, highlighted a `70x` Bitcoin-trading return over 3 years ([source](https:\u002F\u002Fwww.bitmex.com\u002Fhall-of-legends)). But the deeper value of this repository is not a single headline number. It is a public, timestamped archive of long-term BTC trading through multiple market cycles — including strong calls, reversals, drawdowns, and recoveries — so readers can inspect the record in sequence rather than rely on retrospective storytelling.\n\nAny long-term result includes timing and luck. What makes this archive unusual is that much of the trail was public before the outcome was known. That makes it a more durable record of decision-making under uncertainty, not just a curated victory lap.\n\n## Why this exists\n\nMost public trading content is narrative without ledger truth.\n\nThis repository does the opposite: it publishes a long-horizon, continuously updated historical mirror of one real trading account so other people can inspect the actual execution ledger, wallet ledger, terminal snapshots, and reconstruction anchors instead of relying on screenshots, selective anecdotes, or marketing summaries.\n\nOpen intelligence instead of selective narrative.\n\n## How to read this dataset\n\nThis is **not** a dataset for HFT (**high-frequency trading**), CLOB (**central limit order book**) microstructure work, or millisecond price prediction.\nRead it instead as a timestamped archive of manual, discretionary, chart-driven BTC trading: regime adaptation, position sizing, risk management, drawdown handling, and long-term compounding under uncertainty.\n\n## Dataset window\n\n- First public event in this dataset: **2020-05-01T01:05:55.004Z**\n- Latest public event\u002Fsnapshot in this build: **2026-05-03T05:01:51.512Z**\n- Versioning policy: stable root filenames + daily Git commit\u002Ftag (`data-2026-05-03` is the tag format)\n\n## Download packages\n\n- If you just want a one-click download instead of cloning the full git history, use the GitHub **Releases** page.\n- Each tagged build can be attached there as `.zip` and `.tar.gz` archives containing this same flat repo root.\n\n## What is included\n\n| File | Source endpoint | Role |\n|---|---|---|\n| `api-v1-execution-tradeHistory.csv` | `\u002Fapi\u002Fv1\u002Fexecution\u002FtradeHistory` | primary execution ledger |\n| `api-v1-order.csv` | `\u002Fapi\u002Fv1\u002Forder` | order intent and lifecycle ledger |\n| `api-v1-user-walletHistory.csv` | `\u002Fapi\u002Fv1\u002Fuser\u002FwalletHistory?currency=all` | wallet event ledger across deposits, withdrawals, funding, realised pnl, spot trades, conversions |\n| `api-v1-position.snapshot.csv` | `\u002Fapi\u002Fv1\u002Fposition` | terminal position anchor |\n| `api-v1-user-wallet.snapshot-all.csv` | `\u002Fapi\u002Fv1\u002Fuser\u002Fwallet?currency=all` | terminal wallet anchor |\n| `api-v1-user-margin.snapshot-all.csv` | `\u002Fapi\u002Fv1\u002Fuser\u002Fmargin?currency=all` | terminal margin\u002Fequity anchor |\n| `api-v1-user-walletSummary.all.csv` | `\u002Fapi\u002Fv1\u002Fuser\u002FwalletSummary?currency=all` | BitMEX-generated summary cross-check |\n| `api-v1-instrument.all.csv` | `\u002Fapi\u002Fv1\u002Finstrument` | instrument dictionary and contract spec reference |\n| `api-v1-wallet-assets.csv` | `\u002Fapi\u002Fv1\u002Fwallet\u002Fassets` | asset scale and wallet metadata reference |\n| `derived-equity-curve.csv` | derived | XBT-equivalent wallet curve across XBT and USDt balances used for the chart |\n| `cumulative-performance.png` | derived | README performance figure |\n| `manifest.json` | derived | checksums, row counts, time ranges, and build metadata |\n\n## High-level facts from this build\n\n- `api-v1-order.csv`: **43,219** rows\n- `api-v1-execution-tradeHistory.csv`: **173,113** rows\n- `api-v1-user-walletHistory.csv`: **17,177** rows\n- Time span: **2020-05-01 → 2026-05-03**\n- By executed trade notional, BTC-related symbols account for **~84.0%** of the full archive\n- The account becomes much more BTC-concentrated in later years: **~93.7%** from 2022 onward, **~96.1%** from 2023 onward, and **~99.0%** from 2024 onward\n- Chart baseline: **1.83953943 XBT** at **2020-05-01T14:39:40.387Z**\n- Total completed deposits in XBT ledger: **1.77199051 XBT**\n- Total completed withdrawals in XBT ledger: **66.00180000 XBT**\n- Latest adjusted wallet-equivalent wealth (XBT+USDt scope): **96.32555393 XBT** (**52.363952x** vs baseline)\n- Latest adjusted marked wealth (XBT+USDt scope): **95.20953674 XBT** (**51.757269x** vs baseline)\n\nIn plain English: **adjusted wealth** is the wallet-equivalent curve after stripping out later external deposits and adding back later external withdrawals, so it is closer to the trading result itself. **Marked-to-market wealth** uses the same framework but swaps in the current marked margin balance, so it also reflects unrealized PnL still sitting in open positions.\n\n## Reference docs and terminology\n\n- BitMEX API Explorer docs: https:\u002F\u002Fdocs.bitmex.com\u002Fapi-explorer\u002Fbitmex-api.html\n- BitMEX API Explorer \u002F Swagger JSON: https:\u002F\u002Fwww.bitmex.com\u002Fapi\u002Fexplorer\u002Fswagger.json\n- `XBT` is another ticker used by some exchanges for Bitcoin (`BTC`). If you are unfamiliar with the term, see: https:\u002F\u002Fcoinmarketcap.com\u002Facademy\u002Fglossary\u002Fxbt\n\n## Live current-state companion\n\nFor a real-time dashboard companion to this archive, see: **https:\u002F\u002Fwsnb.online**\nThis repository is the long-horizon historical layer; `wsnb.online` is the live current-state layer.\n\n## How to read the files\n\n- `tradeHistory` is the main balance-affecting execution ledger.\n- `order` explains order intent, status transitions, and lifecycle state.\n- `walletHistory` is the wallet-side ledger for deposits, withdrawals, funding, realised PnL, spot trades, conversions, and related events.\n- `position` \u002F `wallet` \u002F `margin` snapshots are terminal anchors for reconstructing state at the export time.\n- `instrument` and `wallet-assets` are reference dictionaries so downstream users can interpret symbols, scales, settlement currencies, and contract metadata using BitMEX-native semantics.\n- `walletSummary` is kept as a cross-check layer, not as the primary historical ledger.\n\n## Privacy policy for the public version\n\n- `account` is removed from every published file where it existed.\n- `api-v1-user-walletHistory.csv`: `tx` is removed, `text` is removed, and `address` is redacted only when `transactType` is `Withdrawal` or `Transfer`.\n- `api-v1-order.csv`: `text` is removed.\n- `api-v1-execution-tradeHistory.csv`: `text` is intentionally kept because it helps explain fills, funding, and settlements, but non-BitMEX hostnames inside that field are redacted.\n- `\u002Fapi\u002Fv1\u002Fuser` profile data and `\u002Fapi\u002Fv1\u002Fexecution` raw lifecycle noise are not published.\n\n## Derived performance methodology\n\n`derived-equity-curve.csv` is intentionally simple and auditable:\n\n1. It tracks **wallet-equivalent wealth across XBT and USDt balances**.\n2. The baseline is the first fully-funded XBT wallet balance after the final completed deposit on the first trading day.\n3. After that baseline, **completed withdrawals are added back**, **completed deposits are subtracted**, and internal `Transfer` rows are neutralized.\n4. `Conversion` and XBT\u002FUSDt `SpotTrade` pairs are treated as **internal wallet swaps**, not losses.\n5. USDt balances are converted back into XBT using the latest observed internal XBT\u002FUSDT conversion or spot rate in the published wallet ledger.\n6. For wallet-history-driven cash flows, event ordering uses `timestamp` when BitMEX provides it; `transactTime` is preserved as the original exchange field but is not blindly treated as the accounting-effective order.\n7. The resulting series is a public-friendly XBT-equivalent wealth curve. It is **not** a full historical mark-to-market NAV across every non-XBT wallet or every asset BitMEX ever credited.\n\nIn practice, almost all trading activity in this account was BTC-settled on BitMEX: by executed trade notional grouped by settlement currency, about 98.9% settles in XBT, while only about 1.1% settles in USDt. That is why the realized PnL story is overwhelmingly a story about BTC quantity and BTC-denominated value changing over time; the USDt component is a small supplementary layer; the only completed external deposits were the two initial XBT deposits on 2020-05-01, and there have been no completed deposits since.\n\nThis keeps the methodology auditable from the published files themselves while avoiding false cliffs when the account temporarily rotates between XBT and USDt.\n\n## What is intentionally not in this repo\n\n- Raw API secrets\n- `\u002Fapi\u002Fv1\u002Fuser` profile payloads\n- `\u002Fapi\u002Fv1\u002Fexecution` rows that are only lifecycle noise beyond `tradeHistory`\n- login\u002FIP\u002Fdevice\u002Fprofile data\n- chain tx hashes from wallet history\n\n## Update policy\n\nThis repository is designed for recurring refreshes.\n\nEach update should:\n\n1. pull the full raw dataset from BitMEX,\n2. rebuild the public root with the same filenames and privacy rules,\n3. commit the new root,\n4. tag the commit as `data-YYYY-MM-DD`.\n\nThat gives stable filenames for readers and full daily traceability through Git history.\n","该项目是一个自2020年以来公开的比特币交易记录档案。它提供了一个可公开检查且持续扩展的真实交易账户镜像，涵盖近六年的43,000多笔订单和173,000多条执行记录。项目的核心功能包括长期比特币交易决策过程的详细记录，涵盖了市场周期中的多种情况如强买入、反转、回撤及恢复等。技术特点上，通过时间戳归档手动、自主、图表驱动的比特币交易策略，重点在于不确定条件下的决策质量而非价格预测准确性。适合场景为金融分析师、加密货币交易者以及对长期投资决策感兴趣的个人研究使用。",2,"2026-06-11 02:39:15","CREATED_QUERY"]