{"id":15355435,"url":"https://github.com/bmf-san/oilking","last_synced_at":"2025-04-15T06:28:49.515Z","repository":{"id":55009150,"uuid":"287401805","full_name":"bmf-san/oilking","owner":"bmf-san","description":"A trading bot using bitflyer api.","archived":false,"fork":false,"pushed_at":"2022-02-16T01:54:44.000Z","size":40,"stargazers_count":9,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T17:05:40.195Z","etag":null,"topics":["bcc","bitflyer","bitflyer-api","bitflyer-auto-trade","bitflyer-lightning","bitflyer-lightning-apis","bot","btc","cryptocurrency","ethereum","fx","golang","jpy","json-rpc","json-rpc2","ltc","system-trade","virtual-currency","websocket"],"latest_commit_sha":null,"homepage":"","language":"Go","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/bmf-san.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["bmf-san"]}},"created_at":"2020-08-13T23:48:27.000Z","updated_at":"2023-07-15T13:12:52.000Z","dependencies_parsed_at":"2022-08-14T09:00:31.626Z","dependency_job_id":null,"html_url":"https://github.com/bmf-san/oilking","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmf-san%2Foilking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmf-san%2Foilking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmf-san%2Foilking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmf-san%2Foilking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bmf-san","download_url":"https://codeload.github.com/bmf-san/oilking/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249020080,"owners_count":21199483,"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":["bcc","bitflyer","bitflyer-api","bitflyer-auto-trade","bitflyer-lightning","bitflyer-lightning-apis","bot","btc","cryptocurrency","ethereum","fx","golang","jpy","json-rpc","json-rpc2","ltc","system-trade","virtual-currency","websocket"],"created_at":"2024-10-01T12:24:22.586Z","updated_at":"2025-04-15T06:28:49.502Z","avatar_url":"https://github.com/bmf-san.png","language":"Go","funding_links":["https://github.com/sponsors/bmf-san"],"categories":[],"sub_categories":[],"readme":"# oilking\n[![GitHub license](https://img.shields.io/github/license/bmf-san/oilking)](https://github.com/bmf-san/oilking/blob/master/LICENSE)\n[![CircleCI](https://circleci.com/gh/bmf-san/oilking/tree/master.svg?style=svg)](https://circleci.com/gh/bmf-san/oilking/tree/master)\n\nA trading bot using bitflyer api.\n\n# Disclaimer\nPlease take responsibility at your own risk if you use this program. \n\nWe do not take any responsibility even if you suffer a loss.\n\n# Get started\n## Set enviroment variables\nCopy an `.env.example` as a `.env` and edit it.\n`cp .env.example .env`\n\n## Build\nBuild the source code.\n`make docker-compose-build`\n\n## Run\nRun the binary file.\n`make docker-compose-up` or `make docker-compose-up-d`\n\n# Exchange marketplaces supported\n|      Support       | Exchange markeplaces |\n| ------------------ | -------------------- |\n| :white_check_mark: | Bitflyer             |\n\n# API supported\n## HTTP API\n### HTTP Public API\n|      Support       | Method |     Endpoint      |\n| ------------------ | ------ | ----------------- |\n|                    | GET    | /v1/getmarkets    |\n|                    | GET    | /v1/markets       |\n|                    | GET    | /v1/getboard      |\n|                    | GET    | /v1/board         |\n| :white_check_mark: | GET    | /v1/getticker     |\n|                    | GET    | /v1/getexecutions |\n| :white_check_mark: | GET    | /v1/getchats      |\n|                    | GET    | /v1/gethealth     |\n|                    | GET    | /v1/getboardstate |\n\n### HTTP Private API\n|      Support       | Method |           Endpoint           |\n| ------------------ | ------ | ---------------------------- |\n|                    | GET    | /v1/me/getpermissions        |\n| :white_check_mark: | GET    | /v1/me/getbalance            |\n| :white_check_mark: | GET    | /v1/me/getcollateral         |\n|                    | GET    | /v1/me/getcollateralaccounts |\n| :white_check_mark: | POST   | /v1/me/sendchildorder        |\n|                    | POST   | /v1/me/sendparentorder       |\n| :white_check_mark: | POST   | /v1/me/cancelchildorder      |\n|                    | POST   | /v1/me/cancelparentorder     |\n| :white_check_mark: | POST   | /v1/me/cancelallchildorders  |\n| :white_check_mark: | GET    | /v1/me/getchildorders        |\n|                    | GET    | /v1/me/getparentorders       |\n|                    | GET    | /v1/me/getparentorder        |\n| :white_check_mark: | GET    | /v1/me/getexecutions         |\n| :white_check_mark: | GET    | /v1/me/getbalancehistory     |\n| :white_check_mark: | GET    | /v1/me/getpositions          |\n|                    | GET    | /v1/me/getcollateralhistory  |\n| :white_check_mark: | GET    | /v1/me/gettradingcommission  |\n|                    | GET    | /v1/me/getaddresses          |\n|                    | GET    | /v1/me/getcoinins            |\n|                    | GET    | /v1/me/getcoinouts           |\n|                    | GET    | /v1/me/getdeposits           |\n|                    | GET    | /v1/me/getwithdrawals        |\n|                    | GET    | /v1/me/getbankaccounts       |\n|                    | POST   | /v1/me/withdraw              |\n\n## Realtime API（JSON-RPC 2.0 over WebSocket）\n### Public Channels\n|      Support       |              Channel name               |\n| ------------------ | --------------------------------------- |\n|                    | lightning_board_snapshot_{product_code} |\n|                    | lightning_board_{product_code}          |\n| :white_check_mark: | lightning_ticker_{product_code}         |\n|                    | lightning_executions_{product_code}     |\n\n\n### Private Channels\n| Support |              Channel name               |\n| ------- | --------------------------------------- |\n|         | lightning_board_snapshot_{product_code} |\n|         | parent_order_events                     |\n\n# Reference\n- [lightning.bitflyer/docs](https://lightning.bitflyer.com/docs)\n\n# Contributing\nWe welcome your issue or pull request from everyone.\n\nWe'd appreciate if you could contribute our project.\n\nAny request or question is OK.\n\n日本語でも大丈夫です :D\n\n# License\nThis project is licensed under the terms of the MIT license.\n\n# Author\nbmf - Software engineer.\n\n- [github - bmf-san/bmf-san](https://github.com/bmf-san/bmf-san)\n- [twitter - @bmf-san](https://twitter.com/bmf_san)\n- [blog - bmf-tech](http://bmf-tech.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmf-san%2Foilking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbmf-san%2Foilking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmf-san%2Foilking/lists"}