{"id":15355810,"url":"https://github.com/fibo/graphql-ccxt","last_synced_at":"2025-09-05T13:47:38.101Z","repository":{"id":51681932,"uuid":"350857933","full_name":"fibo/graphql-ccxt","owner":"fibo","description":"wake up bears 🐻 ride bulls 🐂","archived":false,"fork":false,"pushed_at":"2021-11-16T16:36:14.000Z","size":1368,"stargazers_count":19,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-08-27T05:24:46.943Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/fibo.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}},"created_at":"2021-03-23T21:08:28.000Z","updated_at":"2025-04-23T10:58:47.000Z","dependencies_parsed_at":"2022-08-22T23:21:09.123Z","dependency_job_id":null,"html_url":"https://github.com/fibo/graphql-ccxt","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/fibo/graphql-ccxt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fibo%2Fgraphql-ccxt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fibo%2Fgraphql-ccxt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fibo%2Fgraphql-ccxt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fibo%2Fgraphql-ccxt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fibo","download_url":"https://codeload.github.com/fibo/graphql-ccxt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fibo%2Fgraphql-ccxt/sbom","scorecard":{"id":398928,"data":{"date":"2025-08-11","repo":{"name":"github.com/fibo/graphql-ccxt","commit":"4ee153b389445a8a64d55a6fe88b2fd210d2a8db"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 1/26 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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"21 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-38fc-wpqx-33j7","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T19:40:24.402Z","repository_id":51681932,"created_at":"2025-08-18T19:40:24.402Z","updated_at":"2025-08-18T19:40:24.402Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273767607,"owners_count":25164461,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-01T12:25:42.789Z","updated_at":"2025-09-05T13:47:33.083Z","avatar_url":"https://github.com/fibo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# graphql-ccxt\n\n\u003e wake up bears 🐻 ride bulls 🐂\n\nYou can read the [graphql-ccxt GraphQL schema source here](https://github.com/fibo/graphql-ccxt/blob/main/src/graphql/schema.graphql).\n\n## Features\n\n- Joins together [GraphQL] and [CCXT]: can fetch prices, read balance, open orders, etc.\n- No dependencies other than [graphql](https://www.npmjs.com/package/graphql) and [ccxt](https://www.npmjs.com/package/ccxt) (by the way, installed as peer deps).\n- Last but not least, it can be used to increase your income 💰💰💰\n\n## Credits\n\nTons of kudos to creators of [GraphQL] and [CCXT]. Coders that designed and implemented both projects are so smart and passionate, they are a great example of the power of _open source_.\n\n## Installation\n\nInstall this package and add the following _peer dependencies_:\n\n- graphql\n- ccxt\n\nFor instance with [npm](https://www.npmjs.com/) launch\n\n```bash\nnpm install graphql ccxt graphql-ccxt\n```\n\n## Demo\n\n0. Get [this repository](https://github.com/fibo/graphql-ccxt) code.\n1. Install deps: `npm install`\n2. Launch the demo: `npm start`\n\nThen point your browser to http://localhost:4000/graphql\n\n![query](https://github.com/fibo/graphql-ccxt/raw/main/media/query.png)\n\nTake a look to [examples/](https://github.com/fibo/graphql-ccxt/tree/main/examples/) folder.\nIt contains both _queries_ and _mutations_, among others:\n\n- [fetch Bitcoin price](https://github.com/fibo/graphql-ccxt/blob/main/examples/ticker_01.graphql)\n- [fetch multiple prices, Bitcoin and Ethereum](https://github.com/fibo/graphql-ccxt/blob/main/examples/tickers_01.graphql)\n- [fetch your balance](https://github.com/fibo/graphql-ccxt/blob/main/examples/balance_01.graphql)\n- [fetch your balance, only Bitcoin and Ethereum](https://github.com/fibo/graphql-ccxt/blob/main/examples/balance_02.graphql)\n- [create an order](https://github.com/fibo/graphql-ccxt/blob/main/examples/createOrder_01.graphql)\n- [fetch available timeframes](https://github.com/fibo/graphql-ccxt/blob/main/examples/timeframes_01.graphql)\n- [fetch OHLCV candlesticks](https://github.com/fibo/graphql-ccxt/blob/main/examples/candles_01.graphql)\n\n### Access private API\n\n**Optionally**, before launching the _demo server_, set the following environment variables accordingly:\n\n- `BINANCE_APIKEY`\n- `BINANCE_APISECRET`\n\n### Demo source code\n\nThe demo server is implemented by the following code.\n\n```javascript\nconst express = require('express')\nconst { graphqlHTTP } = require('express-graphql')\nconst { buildSchema } = require('graphql')\nconst {\n  GraphqlCcxtContext,\n  graphqlCcxtRoot,\n  graphqlCcxtSchemaSource\n} = require('graphql-ccxt')\n\nasync function startDemo() {\n  // 1. Create GraphQL context. It holds your exchange clients.\n  // //////////////////////////////////////////////////////////////////////////\n  const context = new GraphqlCcxtContext()\n\n  // Add few public clients on some exchanges.\n  await context.addClient({ exchange: 'binance' })\n  await context.addClient({ exchange: 'coinbase' })\n  await context.addClient({ exchange: 'bitfinex' })\n  await context.addClient({ exchange: 'bittrex' })\n  await context.addClient({ exchange: 'kraken' })\n  // Add another Binance client, provide a `label` to disambiguate it.\n  // It will be private if environment variables are defined,\n  // otherwise it will be public.\n  await context.addClient({\n    exchange: 'binance',\n    label: 'My Binance',\n    apiKey: process.env.BINANCE_APIKEY,\n    secret: process.env.BINANCE_APISECRET\n  })\n\n  // 2. Build GraphQL schema.\n  // //////////////////////////////////////////////////////////////////////////\n  const schema = buildSchema(graphqlCcxtSchemaSource)\n\n  // 3. Launch express-graphql server.\n  // //////////////////////////////////////////////////////////////////////////\n  express()\n    .use(\n      '/graphql',\n      graphqlHTTP({\n        schema,\n        rootValue: graphqlCcxtRoot,\n        context,\n        graphiql: {\n          defaultQuery: '{ clients { exchange } }'\n        }\n      })\n    )\n    .listen(4000, () =\u003e {\n      console.info(\n        'Running a graphql-ccxt server at http://localhost:4000/graphql'\n      )\n    })\n}\n\nstartDemo()\n```\n\n## License\n\n[MIT](http://g14n.info/mit-license)\n\n[graphql]: https://graphql.org\n[ccxt]: http://ccxt.trade\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffibo%2Fgraphql-ccxt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffibo%2Fgraphql-ccxt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffibo%2Fgraphql-ccxt/lists"}