{"id":21202952,"url":"https://github.com/7rikazhexde/gaswritedata-cryptactcustomformat","last_synced_at":"2025-06-29T18:04:03.036Z","repository":{"id":155117415,"uuid":"450523215","full_name":"7rikazhexde/gasWriteData-CryptactCustomFormat","owner":"7rikazhexde","description":"GASでCSVファイルをクリプタクトのカスタムファイルフォーマットに書き出すソースコード","archived":false,"fork":false,"pushed_at":"2024-11-10T13:52:51.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T22:45:06.120Z","etag":null,"topics":["csv","google-spreadsheet","subscan"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/7rikazhexde.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-21T14:30:48.000Z","updated_at":"2024-11-10T13:52:55.000Z","dependencies_parsed_at":"2025-03-14T22:41:46.840Z","dependency_job_id":"2d513417-be75-40b4-b8d2-1b67a4ac77b7","html_url":"https://github.com/7rikazhexde/gasWriteData-CryptactCustomFormat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/7rikazhexde/gasWriteData-CryptactCustomFormat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7rikazhexde%2FgasWriteData-CryptactCustomFormat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7rikazhexde%2FgasWriteData-CryptactCustomFormat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7rikazhexde%2FgasWriteData-CryptactCustomFormat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7rikazhexde%2FgasWriteData-CryptactCustomFormat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7rikazhexde","download_url":"https://codeload.github.com/7rikazhexde/gasWriteData-CryptactCustomFormat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7rikazhexde%2FgasWriteData-CryptactCustomFormat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262642959,"owners_count":23341817,"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":["csv","google-spreadsheet","subscan"],"created_at":"2024-11-20T20:19:47.169Z","updated_at":"2025-06-29T18:04:02.996Z","avatar_url":"https://github.com/7rikazhexde.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gasWriteData-CryptactCustomFormat\nGASでCSVファイルをクリプタクトのカスタムファイルフォーマットに書き出すソースコード\n\n### 前提条件\n* クリプタクトの[暗号資産の損益計算サービス](https://support.cryptact.com/hc/ja/categories/115000455551-%E4%BB%AE%E6%83%B3%E9%80%9A%E8%B2%A8%E3%81%AE%E6%90%8D%E7%9B%8A%E8%A8%88%E7%AE%97%E6%A9%9F%E8%83%BD-%E4%BD%BF%E3%81%84%E6%96%B9)を利用していること\n* カスタムファイルをフォーマット仕様に合わせて作成していること  \n[カスタムファイルの作成方法](https://support.cryptact.com/hc/ja/articles/360002571312-%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E4%BD%9C%E6%88%90%E6%96%B9%E6%B3%95)\n* Google スプレッドシートを使用できること\n* SubscanからDOTのステーキング報酬のCSVファイルをDLし、文字コードはUTF-8とすること\n\n### 注意事項\n* 対象通貨はDOTですが、subscanに対応した通貨であれば同様に対応可能かと思いますが未確認です。\n\n* Subscanやクリプタクトのデータフォーマットは変わることがありますので、利用する際は自己責任でお願いします。\n\n### 使い方\n#### 事前準備\nsubscan-dotフォルダから下記4ファイルを追加してください。\n* FileOpenAction.gs\n* FileOpen.html\n* WriteDataAction.gs\n* WriteData.html\n\nファイル読み込み用のシートとデータ書き出し用のシートを下記の名前で作成してください\n* 読込み用シート名：`tradingHist`\n* 書き出し用シート名：`customData`\n\nカスタムファイルで書き出す固定値データは任意の文字列に変更してください\n* `WriteDataAction.gs`で定義する固定値データ\n\n#### ファイル読み込みメニュー\n\nメニューを実行するとファイル参照ボタンのHTMLが表示されます。  \nファイル参照ボタンからCSVファイルを選択して読み込むとHTMLにも読み込んだ内容を表示し、スプレッドシートにも表示します。\n\n#### ファイル展開メニュー\n\nメニューを実行すると書き出したい行数を入力するテキストボックスとシートへの書き込み処理を実行するボタンがHTMLで表示され、実行ボタンを押すとシートにデータを書込みます。  \n入力する行数は正の整数です。0以下の値、CSVファイルの行数より大きい値の場合はエラーを表示し、処理を中止します。  \nデータ整形処理は文字列の結合、日時データの調整(UTC日本時間)を行います。  \nその他はフォーマット形式に従い固定値を入力します。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7rikazhexde%2Fgaswritedata-cryptactcustomformat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7rikazhexde%2Fgaswritedata-cryptactcustomformat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7rikazhexde%2Fgaswritedata-cryptactcustomformat/lists"}