{"id":22924596,"url":"https://github.com/noccer/binancetokoinly","last_synced_at":"2025-04-01T15:20:56.752Z","repository":{"id":119591543,"uuid":"447239825","full_name":"noccer/binancetokoinly","owner":"noccer","description":"converts binance conversion data to csv format for importing into Koinly","archived":false,"fork":false,"pushed_at":"2022-04-26T12:20:17.000Z","size":112,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T09:41:49.687Z","etag":null,"topics":["binance","crypto","koinly"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noccer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-12T14:01:53.000Z","updated_at":"2022-01-13T11:23:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"3ea08c8e-537b-4547-a05c-9e1a592317fb","html_url":"https://github.com/noccer/binancetokoinly","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noccer%2Fbinancetokoinly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noccer%2Fbinancetokoinly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noccer%2Fbinancetokoinly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noccer%2Fbinancetokoinly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noccer","download_url":"https://codeload.github.com/noccer/binancetokoinly/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246660081,"owners_count":20813338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binance","crypto","koinly"],"created_at":"2024-12-14T08:29:22.048Z","updated_at":"2025-04-01T15:20:56.714Z","avatar_url":"https://github.com/noccer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bitaroo To Koinly\n\nA tool to convert your trades data in Bitaroo to a Koinly formatted CSV for simple importing into Koinly.\n\n## Disclaimer\n\nI could have totally messed this conversion up. It's on **you** if the data it outputs into Koinly is wrong. I recommend you only work with a single data point for testing purposes, to confirm this tool actually works as expected. I also recommend you double check output data before even attempting to use it with Koinly. This was just a hobby project for me because f\\*\\*\\* Binance for making it too hard to export your own data. ✊ It was coded late at night, so don't be surprised if there are mistakes.\n\nYou have been warned.\n\n## Getting the data yourself\n\nWith that being said, let's have some fun.\n\nhttps://reports.bitaroo.com.au/trades\n\nYou will need the json payload returned from https://www.binance.com/bapi/margin/v1/private/new-otc/query-trade-history?startTime=1619791200000\u0026endTime=1624975199999\u0026page=1\u0026rows=20\n\nTo get this:\n\n1. Log into Binance and visit https://www.binance.com/en/my/orders/convert/history\n2. open up chrome devtools then go to the network tab.\n3. Set some start/end dates, click the \"Search\" button.\n   \u003e Note: the date picker only lets you select up to 90 days of data. If you adjust the timestamps and make the api call using something like Postman, this restriction does not exist and you can get all your data in one go. Presumably Binance want to limit how much you hammer their servers, the poor diddumz.\n4. Right click on the network request and select `Copy` \u003e `Response`.\n5. Then paste into the 'binanceData.json' file in the same folder as this file.\n\n## Running the code\n\nSimply:\n\n```shell\nnpm run b2k\n```\n\nManually copy the converted data format that has been spat out in the terminal to your clipboard. I wasnt bothered trying to automatically pipe the data into a csv, more hassle than it was worth. Maybe some day. Probably not.\n\n\u003e Important: The end of the output seems to have an erroneous `%` added to it. Not sure why. Make sure not to copy that into your CSV file or large poopey action may happen to your CSV import to Koinly.\n\n![example](./example.png)\n\n```shell\ntouch conversions.csv\n```\n\nThen finally paste your clipboard into conversations.csv and save. You can then import it into Koinly. ☘️\n\n# 🚬😎🤌\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoccer%2Fbinancetokoinly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoccer%2Fbinancetokoinly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoccer%2Fbinancetokoinly/lists"}