{"id":18831276,"url":"https://github.com/acrazing/talib-binding-node","last_synced_at":"2025-08-21T00:31:51.493Z","repository":{"id":25885702,"uuid":"104649037","full_name":"acrazing/talib-binding-node","owner":"acrazing","description":"A synchronous ta-lib bindings for node.js, work on any platform.","archived":false,"fork":false,"pushed_at":"2022-12-08T19:08:54.000Z","size":17230,"stargazers_count":98,"open_issues_count":7,"forks_count":20,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-08-16T19:32:08.976Z","etag":null,"topics":["bindings","nodejs","synchronous","ta-lib","talib-binding","typescript","windows"],"latest_commit_sha":null,"homepage":"http://ta-lib.org","language":"C","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/acrazing.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":"2017-09-24T14:12:41.000Z","updated_at":"2025-03-13T23:10:32.000Z","dependencies_parsed_at":"2023-01-14T07:15:14.309Z","dependency_job_id":null,"html_url":"https://github.com/acrazing/talib-binding-node","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/acrazing/talib-binding-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrazing%2Ftalib-binding-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrazing%2Ftalib-binding-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrazing%2Ftalib-binding-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrazing%2Ftalib-binding-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acrazing","download_url":"https://codeload.github.com/acrazing/talib-binding-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrazing%2Ftalib-binding-node/sbom","scorecard":{"id":163334,"data":{"date":"2025-08-11","repo":{"name":"github.com/acrazing/talib-binding-node","commit":"431128b8ee81c473bf6e9d621606371319a4f3d7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.6,"checks":[{"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/20 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":"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":"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":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: ta-lib/c/src/tools/gen_code/mcpp.exe:1"],"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":"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":"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":"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":"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":"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":"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 '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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"20 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq","Warn: Project is vulnerable to: GHSA-776f-qx25-q3cc"],"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-16T14:11:26.212Z","repository_id":25885702,"created_at":"2025-08-16T14:11:26.212Z","updated_at":"2025-08-16T14:11:26.212Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271409416,"owners_count":24754711,"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-08-20T02:00:09.606Z","response_time":69,"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":["bindings","nodejs","synchronous","ta-lib","talib-binding","typescript","windows"],"created_at":"2024-11-08T01:52:51.892Z","updated_at":"2025-08-21T00:31:51.041Z","avatar_url":"https://github.com/acrazing.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# talib-binding\n\nA synchronous [TA-Lib](http://ta-lib.org/) bindings for Node.js \u0026 TypeScript.\n\n## Install\n\nvar yarn:\n\n```bash\nyarn add talib-binding\n```\n\nvar npm:\n\n```bash\nnpm install talib-binding --save\n```\n\n### Install on Windows system\n\nBefore install this module, you may need to install `windows-build-tools` by run:\n\n```bash\nnpm install --global --production windows-build-tools\n```\n\n## Usage\n\n1. All the functions are exported, you can call it in the same form to [c api](https://ta-lib.org/d_api/d_api.html), but there are some difference:\n    - the `startIdx` and `endIdx` is placed at the end of the function signature, and is optional.\n    - the return value is the computed result, if result is one array, will be it, else will be a nested array to contains all output arrays.\n    - if the ta-lib function returns a error code, will throw a error.\n2. Additionally, you can pass a `Record[]` to extract its fields rather than input double array such as `inHigh`, `inLow`, etc. And if the input field is a implicit field of the records, you need to input a string to specifying which one field will be extract as it.\n3. The types for TypeScript is generated, you can use this it in TypeScript projects.\n\n## Example\n\n- call in the same form of `TA-Lib`:\n    ```typescript\n    import * as talib from 'talib-binding'\n    \n    talib.SAR(\n        [2, 3, 4, 5], /* inHigh */\n        [1, 2, 3, 4], /* inLow */\n        0.02, /* optAcceleration_Factor, optional */\n        0.2, /* optAF_Maximum, optional */\n        0, /* startIdx, optional */\n        3 /* endIdx, optional */\n    )\n    ```\n- pass a `Record` array as the first parameter, the library will extract the field value automatically, if the function contains some implicit parameter name, you need to pass the name string to extract it. The implicit parameter means that the param is not one of `High`, `Low`, `Open`, `Close`, and `Volume`, just like `inReal`, more detailed information could be found in the TypeScript function signatures.\n    ```typescript\n    import * as talib from 'talib-binding'\n\n    const records = [\n      {Time: 0, Open: 1, High: 2, Low: 1, Close: 2, Volume: 1},\n      {Time: 0, Open: 2, High: 3, Low: 2, Close: 3, Volume: 1},\n      {Time: 0, Open: 3, High: 4, Low: 3, Close: 4, Volume: 1},\n      {Time: 0, Open: 4, High: 5, Low: 4, Close: 5, Volume: 1},\n    ]\n\n    talib.SAR(records)\n\n    // The COS function contains implicit parameter name, you need to call it as follow:\n    talib.COS(records, 'Volume')\n    ```\n- if function return a single array, the return value will be it, else will be a nested array.\n    ```typescript\n    import * as talib from 'talib-binding'\n\n    const outReal = talib.SAR([2, 3, 4, 5], [1, 2, 3, 4])\n    console.log(outReal)\n    // [ 1, 1.04, 1.1584 ]\n    \n    const [outUp, outMid, outLow] = talib.ACCBANDS([2, 3, 4, 5], [1, 2, 3, 4], [2, 3, 4, 5], 3)\n    console.log(outUp, outMid, outLow)\n    // [ 5.45079365079365, 6.302645502645503 ]\n    // [ 3, 4 ]\n    // [ 0.4507936507936508, 1.3026455026455028 ]\n    ```\n- **if TA function returns a error, OR startIdx/endIdx out of range, will throw it**:\n    ```typescript\n    import * as talib from 'talib-binding'\n\n    talib.ACCBANDS([2, 3, 4, 5], [1, 2, 3, 4], [2, 3, 4, 5], 10)\n    // throw RangeError: `startIdx` or `endIdx` out of range\n    ```\n\n## Notes\n\n- Some API need to use `TA_MAType`, which is exported as `MATypes` in the binding. For example:\n    ```typescript\n    import * as talib from 'talib-binding'\n\n    talib.MA([1, 2, 3], void 0, talib.MATypes.SMA)\n    ```\n\n## Contributing\n\nClone the repo at first:\n\n```bash\ngit clone https://github.com/acrazing/talib-binding-node \u0026\u0026 cd talib-binding-node\n```\n\nAll the files end with `generated.*` is generated by [src/generate.ts](./src/generate.ts). Maybe you need to view it\nto get detailed information.\n\n## License\n\n- This project published under [MIT](./LICENSE) License.\n- The `TA-Lib` is published under [LICENSE](./ta-lib/LICENSE.TXT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facrazing%2Ftalib-binding-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facrazing%2Ftalib-binding-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facrazing%2Ftalib-binding-node/lists"}