{"id":42308795,"url":"https://github.com/futuweb/futu-commission-calculator","last_synced_at":"2026-01-27T11:13:23.320Z","repository":{"id":26865818,"uuid":"110509775","full_name":"futuweb/futu-commission-calculator","owner":"futuweb","description":"futu-commission-calculator 富途佣金计算器","archived":false,"fork":false,"pushed_at":"2022-12-02T15:47:28.000Z","size":735,"stargazers_count":8,"open_issues_count":9,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-09T06:38:10.740Z","etag":null,"topics":["calculator","futu-commission-calculator","stock"],"latest_commit_sha":null,"homepage":"https://charge.futu5.com/calc","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/futuweb.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":"2017-11-13T06:37:53.000Z","updated_at":"2023-01-04T08:13:41.000Z","dependencies_parsed_at":"2023-01-14T05:26:28.704Z","dependency_job_id":null,"html_url":"https://github.com/futuweb/futu-commission-calculator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/futuweb/futu-commission-calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futuweb%2Ffutu-commission-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futuweb%2Ffutu-commission-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futuweb%2Ffutu-commission-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futuweb%2Ffutu-commission-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/futuweb","download_url":"https://codeload.github.com/futuweb/futu-commission-calculator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futuweb%2Ffutu-commission-calculator/sbom","scorecard":{"id":414904,"data":{"date":"2025-08-11","repo":{"name":"github.com/futuweb/futu-commission-calculator","commit":"5646bd29824cff55e9fe6daf85daaece4d77aa31"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.4,"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":"Code-Review","score":1,"reason":"Found 3/16 approved changesets -- score normalized to 1","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":"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":"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":"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":"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":"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":"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":"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/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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 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":"36 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-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","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-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-h9rv-jmmf-4pgx","Warn: Project is vulnerable to: GHSA-hxcc-f52p-wc94","Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"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-18T23:34:54.531Z","repository_id":26865818,"created_at":"2025-08-18T23:34:54.531Z","updated_at":"2025-08-18T23:34:54.531Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28812371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T07:41:26.337Z","status":"ssl_error","status_checked_at":"2026-01-27T07:41:08.776Z","response_time":168,"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":["calculator","futu-commission-calculator","stock"],"created_at":"2026-01-27T11:13:22.641Z","updated_at":"2026-01-27T11:13:23.314Z","avatar_url":"https://github.com/futuweb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# futu commission calculator（富途港美股佣金计算器）\n富途佣金计算器默认会给出几个券商的佣金结果对比。\n\n## npm install\n\n```\nnpm install --save futu-commission-calculator\n```\n\n## Use\n\n```js\nvar calculator = require('futu-commission-calculator');\n\nvar tencentConfig = {\n    stockCode: '00700',\n    market:1,\n    price:377,\n    shareNum: 100,\n    instrument:0,\n    free:true\n};\nvar babaConfig = {\n    stockCode: 'BABA',\n    market:2,\n    price:200,\n    shareNum: 100,\n    free: false\n};\n\nlet tencent = calculator(tencentConfig);\nlet baba = calculator(babaConfig,'hk');\n\nconsole.log('富途港股收费：' , tencent.futu , tencent.brokers);\nconsole.log('富途美股收费：' , baba.futu , baba.brokers);\n```\n\n\n## calculator(stock [, config , lang])\n* stock 股票配置文件\n* config 自定义券商收费标准\n* lang  语言环境  默认：大陆 ， 支持香港(hk), 支持欧美(us)\n\n\n### stock\n根据输入的股票进行佣金计算。\n\n参数如下：\n\n```\nstockCode = stock.stockCode; //股票code\nfree = 'free' in stock ? !!stock.free : false;//免佣\nmarket = stock.market || 1;//市场  港股：1 美股：2\nprice = stock.price || 0; //价格\nshareNum = stock.shareNum || 1; //股数\ninstrument = stock.instrument \u0026\u0026 stock.instrument === 1 ? 1 : 0; //港股：正股：1|窝轮:0\ncost = price * this.shareNum; //总费用\n```\n\n### config\n券商佣金方案的配置\n\n#### 港股参数列表\n\n```js\nthis.name = options.name || 'unkown';         //券商名称\nthis.spell = options.spell || 'unkown';       //券商拼写\n\nthis.packageId = options.packageId || 0;      //套餐Id\nthis.packageName = options.packageName || 'unkown';//套餐名称\n\nthis.commissionRate = options.commissionRate || 0;//佣金费用比例\nthis.minCommission = options.minCommission || 0;  //最少佣金\nthis.maxCommission = options.maxCommission || Infinity;//最多佣金\nthis.maxCommissionRate = options.maxCommissionRate || Infinity;//最多佣金比例\n\nthis.platformFee = options.platformFee || 0;        //平台使用费\n\nthis.payFeeRate = options.payFeeRate || 0;//交收费比例\nthis.minPayFee = options.minPayFee || 0; //最少使用交收费\nthis.maxPayFee = options.maxPayFee || Infinity;  //最多使用交收费\n\nthis.tradingSystemFee = options.tradingSystemFee || 0;   //交易系统使用费\n\nthis.stampDutyRate = options.stampDutyRate || 0; //印花税比例\nthis.minStampDutyFee = options.minStampDutyFee || 0; //最少印花税\n\nthis.tradeFeeRate = options.tradeFeeRate || 0; //交易费比例\nthis.minTradeFee = options.minTradeFee || 0; //最少交易费\n\nthis.transactionLevyRate = options.transactionLevyRate || 0;//交易征费比例\nthis.minTransactionLevyFee = options.minTransactionLevyFee || 0; //最少交易征费\n```\n\n#### 美股参数列表\n\n```js\nthis.name = options.name || 'unkown';         //券商名称\nthis.spell = options.spell || 'unkown';       //券商拼写\n\nthis.packageId = options.packageId || 0;      //套餐Id\nthis.packageName = options.packageName || 'unkown';//套餐名称\n\nthis.minStockPrice = options.minStockPrice || 0; //最低价格\nthis.paddingCommission = options.paddingCommission || 0;//附加钱\n\nthis.commissionRate = options.commissionRate || 0;//佣金费用比例\nthis.minCommission = options.minCommission || 0;  //最少佣金\nthis.maxCommission = options.maxCommission || Infinity;//最多佣金\nthis.maxCommissionRate = options.maxCommissionRate || Infinity;//最多佣金\nthis.commissionNeedPrice = options.commissionNeedPrice || false;//计算佣金是否要*股价\n\nthis.platformFee = options.platformFee || 0;        //平台使用费\nthis.platformFeeRate = options.platformFeeRate || 0;        //平台使用费\nthis.minPlatformFee = options.minPlatformFee || 0;  //最少平台使用费\nthis.maxPlatformFeeRate = options.maxPlatformFeeRate || Infinity;  //最多平台使用费比例\n\nthis.payFeeRate = options.payFeeRate || 0;//交收费比例\nthis.minPayFee = options.minPayFee || 0; //最少使用交收费\nthis.maxPayFee = options.maxPayFee || Infinity;  //最多使用交收费\n\nthis.secFeeRate = options.secFeeRate || 0; //证监会费比例\nthis.minSecFee = options.minSecFee || 0;//最低证监会费\nthis.maxSecFee = options.maxSecFee || Infinity;//最低证监会费\n\nthis.activityFeeRate = options.activityFeeRate || 0; //交易活动费比例\nthis.minActivityFee = options.minActivityFee || 0; //最少交易活动费\nthis.maxActivityFee = options.maxActivityFee || Infinity;//最多交易活动费\n```\n\n## 计算文档\n\n[【港股】](./docs/hk-calc.md)\n\n[【美股】](./docs/us-calc.md)\n\n\n## browser export \u003e= ie9","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffutuweb%2Ffutu-commission-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffutuweb%2Ffutu-commission-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffutuweb%2Ffutu-commission-calculator/lists"}