{"id":28352468,"url":"https://github.com/tacyarg/bybit","last_synced_at":"2026-02-23T02:31:21.331Z","repository":{"id":35088663,"uuid":"205240545","full_name":"tacyarg/bybit","owner":"tacyarg","description":"Simple and easy to use bybit API abstraction defined using the official documentation.","archived":false,"fork":false,"pushed_at":"2022-09-24T01:20:16.000Z","size":22,"stargazers_count":7,"open_issues_count":0,"forks_count":6,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-30T20:02:50.419Z","etag":null,"topics":["abstraction","apikey","bybit","client","fetch","nodejs","order-price","promises","wrapper"],"latest_commit_sha":null,"homepage":"https://bybit.com","language":"JavaScript","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/tacyarg.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}},"created_at":"2019-08-29T19:56:33.000Z","updated_at":"2022-09-24T01:20:03.000Z","dependencies_parsed_at":"2022-09-01T03:40:11.067Z","dependency_job_id":null,"html_url":"https://github.com/tacyarg/bybit","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/tacyarg/bybit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tacyarg%2Fbybit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tacyarg%2Fbybit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tacyarg%2Fbybit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tacyarg%2Fbybit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tacyarg","download_url":"https://codeload.github.com/tacyarg/bybit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tacyarg%2Fbybit/sbom","scorecard":{"id":865371,"data":{"date":"2025-08-18","repo":{"name":"github.com/tacyarg/bybit","commit":"2c45767d504e66071197920125c1c1b5dc07fef7"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":2.6,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 1/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T02:33:55.324Z","repository_id":35088663,"created_at":"2025-08-24T02:33:55.324Z","updated_at":"2025-08-24T02:33:55.324Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29735758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T02:24:00.660Z","status":"ssl_error","status_checked_at":"2026-02-23T02:22:56.087Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["abstraction","apikey","bybit","client","fetch","nodejs","order-price","promises","wrapper"],"created_at":"2025-05-27T23:07:12.318Z","updated_at":"2026-02-23T02:31:21.323Z","avatar_url":"https://github.com/tacyarg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bybit\n\nSimple and easy to use bybit API abstraction defined using the official documentation.\n\n\u003e Official API Documentation: https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md\n\n## Initialize \u0026 Use\n\nBelow is a short guide on how to use the client.\n\n### Register your APIKEY\n\n- `testnet`: https://testnet.bybit.com/user/api-management\n- `mainnet`: https://www.bybit.com/app/user/api-management\n\n### Configure/Init Client\n\n- `baseURL.testnet`: https://api-testnet.bybit.com\n- `baseURL.mainnet`: https://api.bybit.com\n- `key`: APIKey\n- `secret`: Private Key\n\n```js\nconst client = require('bybit')({\n  baseURL: 'https://api.bybit.com',\n  key: '',\n  secret: '',\n})\n```\n\n### Call Something\n\n```js\nclient\n  .get('/order/list', params)\n  .then(console.log)\n  .catch(console.error)\n```\n\n## Interface\n\nMethods provided by the client.\n\n### listActiveOrders\n\n\u003e List your Active orders.\n\n- `options` - Optional api params\n\n```js\nclient\n  .listOrders([options])\n  .then(console.log)\n  .catch(console.error)\n```\n\n### getActiveOrder\n\n\u003e Get a previously created Active order.\n\n- `id` - Order ID. The unique order ID returned to you when the corresponding order was created.\n- `options` - Optional api params\n\n```js\nclient\n  .getOrder(id, [options])\n  .then(console.log)\n  .catch(console.error)\n```\n\n### cancelActiveOrder\n\n\u003e Canel a previously created Active order.\n\n- `id` - Order ID. The unique order ID returned to you when the corresponding order was created.\n\n```js\nclient\n  .cancelOrder(id)\n  .then(console.log)\n  .catch(console.error)\n```\n\n### createOrder\n\n\u003e Create a new order.\n\n```js\nclient\n  .createOrder({\n    side: 'Buy',\n    symbol: 'BTCUSD',\n    order_type: 'Limit',\n    time_in_force: 'GoodTillCancel',\n    price: 10000,\n    qty: 100000,\n  })\n  .then(console.log)\n  .catch(console.error)\n```\n\n### limitBuy\n\n\u003e Create a limit buy order.\n\n- `price` - Order Price\n- `qty` - Number of Contracts\n- `options` - Optional api params\n\n```js\nclient\n  .limitBuy(price, qty, [options])\n  .then(console.log)\n  .catch(console.error)\n```\n\n### limitSell\n\n\u003e Create a limit sell order.\n\n- `price` - Order Price\n- `qty` - Number of Contracts\n- `options` - Optional api params\n\n```js\nclient\n  .limitSell(price, qty, [options])\n  .then(console.log)\n  .catch(console.error)\n```\n\n### marketBuy\n\n\u003e Create a market buy order.\n\n- `qty` - Number of Contracts\n- `options` - Optional api params\n\n```js\nclient\n  .marketBuy(qty, [options])\n  .then(console.log)\n  .catch(console.error)\n```\n\n### marketSell\n\n\u003e Create a market sell order.\n\n- `qty` - Number of Contracts\n- `options` - Optional api params\n\n```js\nclient\n  .marketSell(qty, [options])\n  .then(console.log)\n  .catch(console.error)\n```\n\n### createConditionalOrder\n\n\u003e Create a new order.\n\n- `options` - Optional api params\n\n```js\nclient\n  .createConditionalOrder([options])\n  .then(console.log)\n  .catch(console.error)\n```\n\n### listConditionalOrders\n\n\u003e List conditional orders.\n\n- `options` - Optional api params\n\n```js\nclient\n  .listConditionalOrders([options])\n  .then(console.log)\n  .catch(console.error)\n```\n\n### getConditionalOrder\n\n\u003e Get a previously created Conditional order.\n\n- `options` - Optional api params\n\n```js\nclient\n  .getOrder('order_id', [options])\n  .then(console.log)\n  .catch(console.error)\n```\n\n### cancelConditionalOrder\n\n\u003e Canel a previously created Conditional order.\n\n- `id` - Order ID. The unique order ID returned to you when the corresponding order was created.\n\n```js\nclient\n  .cancelOrder(id)\n  .then(console.log)\n  .catch(console.error)\n```\n\n### listMyLeverage\n\n\u003e List symbol leverage settings.\n\n```js\nclient\n  .listMyLeverage()\n  .then(console.log)\n  .catch(console.error)\n```\n\n### setMyLeverage\n\n\u003e Set symbol leverage setting.\n\n- `symbol` - Contract type\n- `leverage` - Leverage value\n\n```js\nclient\n  .setMyLeverage(symbol, leverage)\n  .then(console.log)\n  .catch(console.error)\n```\n\n### listMyPositions\n\u003e List your positions.\n\n```js\nclient\n  .listMyPositions()\n  .then(console.log)\n  .catch(console.error)\n```\n\n### updatePositionMargin\n\u003e Update position margin allocation.\n\n- `symbol` - Contract type\n- `margin` - margin value\n\n```js\nclient\n  .updatePositionMargin(symbol, margin)\n  .then(console.log)\n  .catch(console.error)\n```\n\n### getFundingRate\n\u003e Get the current funding rate.\n\u003e Funding settlement occurs every 8 hours at 00:00 UTC, 08:00 UTC and 16:00 UTC\n\n- `symbol` - Contract type\n\n```js\nclient\n  .getFundingRate(symbol)\n  .then(console.log)\n  .catch(console.error)\n```\n\n### getMyFundingFee\n\u003e Get the provious funding fee.\n\u003e Funding settlement occurs every 8 hours at 00:00 UTC, 08:00 UTC and 16:00 UTC\n\n- `symbol` - Contract type\n\n```js\nclient\n  .getMyFundingFee(symbol)\n  .then(console.log)\n  .catch(console.error)\n```\n\n### getMyPredictedFunding\n\u003e Get your predictied funding rate and fee.\n\n- `symbol` - Contract type\n\n```js\nclient\n  .getMyPredictedFunding(symbol)\n  .then(console.log)\n  .catch(console.error)\n```\n\n### listOrderTrades\n\u003e List trades placed to fill and order.\n\n- `id` - order id\n\n```js\nclient\n  .listOrderTrades(symbol)\n  .then(console.log)\n  .catch(console.error)\n```\n\n### getOrderbookSnapshot\n\u003e Get the current state of the orderbook.\n\n- `symbol` - Contract type\n\n```js\nclient\n  .getOrderbookSnapshot(symbol)\n  .then(console.log)\n  .catch(console.error)\n```\n\n### listTickers\n\u003e List all available ticker data. ( price, ect... )\n\n```js\nclient\n  .listTickers()\n  .then(console.log)\n  .catch(console.error)\n```\n\n### getTicker\n\u003e get current ticker data.\n\n- `symbol` - Contract type\n\n```js\nclient\n  .listTickers(symbol)\n  .then(console.log)\n  .catch(console.error)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftacyarg%2Fbybit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftacyarg%2Fbybit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftacyarg%2Fbybit/lists"}