{"id":43960308,"url":"https://github.com/codebycorey/tradier-client","last_synced_at":"2026-02-07T05:08:15.407Z","repository":{"id":55334260,"uuid":"204588671","full_name":"codebycorey/tradier-client","owner":"codebycorey","description":"Node.js Tradier Brokerage API written in typescript.","archived":false,"fork":false,"pushed_at":"2021-01-05T13:36:59.000Z","size":22,"stargazers_count":6,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T12:49:36.394Z","etag":null,"topics":["finance","market-data","stock-prices","stocks","tradier","tradier-api","tradier-client"],"latest_commit_sha":null,"homepage":"https://tradier.com/","language":"TypeScript","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/codebycorey.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-08-27T00:54:21.000Z","updated_at":"2024-10-09T17:41:12.000Z","dependencies_parsed_at":"2022-08-14T21:12:45.603Z","dependency_job_id":null,"html_url":"https://github.com/codebycorey/tradier-client","commit_stats":null,"previous_names":["reycodev/tradier-client"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/codebycorey/tradier-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebycorey%2Ftradier-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebycorey%2Ftradier-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebycorey%2Ftradier-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebycorey%2Ftradier-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codebycorey","download_url":"https://codeload.github.com/codebycorey/tradier-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebycorey%2Ftradier-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29186753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T05:07:31.176Z","status":"ssl_error","status_checked_at":"2026-02-07T05:06:15.227Z","response_time":63,"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":["finance","market-data","stock-prices","stocks","tradier","tradier-api","tradier-client"],"created_at":"2026-02-07T05:08:14.807Z","updated_at":"2026-02-07T05:08:15.402Z","avatar_url":"https://github.com/codebycorey.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tradier Client\nNode.js Tradier Brokerage API written in typescript. \n\nCurrent Functionality\n * Market Data\n * Fundamentals (Beta use at own risk)\n\nFuture Planned Functionality\n * Stream Endpoint\n * OAuth Authentication\n * Account\n * Trading\n * Watchlist\n\n### Tradier\nBrokerage Reinvented.\n\nTradier is a REST-based, open, and secure API for investors, advisors, and traders.\n\n[Tradier Documentation](https://documentation.tradier.com/)\n\n#### Access Token\nYou will receive your Tradier API Access Token after you create an account.\n\nDepending on what type of account you create will determine the type of access token you will receive.\n * [Sandbox](https://developer.tradier.com/user/sign_up)\n * [Brokerage](https://brokerage.tradier.com/signup)\n\n Note: Sandbox does not work with every endpoint and may contain delayed information.\n\n## Installation\n```\nnpm i --save @reycodev/tradier-client\n```\n\n## Usage\nInitialize the client.\n```Typescript\nimport { TradierAccountType, TradierClient, TradierClientOptions } from '@reycodev/tradier-client';\n\nconst options: TradierClientOptions = {\n  accessToken: '##########' // Token receieved after creating tradier account\n  accountType: TradierAccountType.SANDBOX // Depends on type of account created.\n}\n\nconst tradier: TradierClient = new TradierClient(options);\n\n```\n#### Market\nImplemented Endpoints:\n * [Get Quotes](https://documentation.tradier.com/brokerage-api/markets/get-quotes)\n * [Get Option Chains](https://documentation.tradier.com/brokerage-api/markets/get-options-chains)\n * [Get Option Strikes](https://documentation.tradier.com/brokerage-api/markets/get-options-strikes)\n * [Get Option Expirations](https://documentation.tradier.com/brokerage-api/markets/get-options-expirations)\n * [Get Historical Quotes](https://documentation.tradier.com/brokerage-api/markets/get-history)\n * [Get Time and Sales](https://documentation.tradier.com/brokerage-api/markets/get-timesales)\n * [Get ETB Securities](https://documentation.tradier.com/brokerage-api/markets/get-etb)\n * [Get Clock](https://documentation.tradier.com/brokerage-api/markets/get-clock)\n * [Get Calendar](https://documentation.tradier.com/brokerage-api/markets/get-calendar)\n * [Get Companies](https://documentation.tradier.com/brokerage-api/markets/get-search)\n * [Get Lookup Symbol](https://documentation.tradier.com/brokerage-api/markets/get-lookup)\n\nExamples:\n```Typescript\n// Get Quotes\ntradier.market.getQuotes(['spy', 'amd'])\n  .then((response) =\u003e console.log('response', response))\n  .catch((error) =\u003e console.error(error));\n// Get Option Questions\ntradier.market.getOptionChains('spy', '2019-05-17')\n  .then((response) =\u003e console.log('response', response))\n  .catch((error) =\u003e console.error(error));\n```\n\n#### Fundamentals\nImplemented Endpoints:\n * [Get Company](https://documentation.tradier.com/brokerage-api/markets/fundamentals/get-company)\n * [Get Corporate Calendars](https://documentation.tradier.com/brokerage-api/markets/fundamentals/get-calendars)\n * [Get Dividends](https://documentation.tradier.com/brokerage-api/markets/fundamentals/get-dividends)\n * [Get Corporate Actions](https://documentation.tradier.com/brokerage-api/markets/fundamentals/get-corporate-actions)\n * [Get Rations](https://documentation.tradier.com/brokerage-api/markets/fundamentals/get-ratios)\n * [Get Financial Reports](https://documentation.tradier.com/brokerage-api/markets/fundamentals/get-financials)\n * [Get Price Statistics](https://documentation.tradier.com/brokerage-api/markets/fundamentals/get-statistics)\n\nExamples:\n```Typescript\n// Get Company Information\ntradier.fundamentals.getCompany(['spy', 'amd'])\n  .then((response) =\u003e console.log('response', response))\n  .catch((error) =\u003e console.error(error));\n  // Get Corporate Calendars\ntradier.fundamentals.getCorporateCalendars(['spy', 'amd'])\n  .then((response) =\u003e console.log('response', response))\n  .catch((error) =\u003e console.error(error));\n```\n\n## Development\nDecisions:\n * Trying to follow Inversion of Control with Dependency Injection (Needs some more refactoring)\n * Went with promises but thought about observables (rxjs) but didn't want to have that dependency. \n   * Observables seem like a viable option because it could help with real time updates. \n\nImprovements:\n * Add Linting\n * Add Unit Tests\n * Add Typings for responses\n * Add more endpoints for tradier\n * Add bundling process to allow for use on different environments such as browser.\n\n## Miscellaneous\n#### NestJs\nPlanned on creating a Nestjs library using this package.\nIn the mean time, you can follow this to create your own.\n\ntradier.service.ts\n```Typescript\nimport { Injectable } from '@nestjs/common';\nimport { TradierClient } from '@reycodev/tradier-client';\n\n@Injectable()\nexport class TradierService extends TradierClient {}\n\n```\n\ntradier.module.ts\n```Typescript\nimport { Module, Provider } from '@nestjs/common';\nimport { TradierClient, TradierAccountType, TradierClientOptions } from '@reycodev/tradier-client';\n\nimport { TradierService } from './services';\n\n// Recomend not commiting access token\nconst tradierToken: string = '######' \n\n// Probably should be its own file.\nconst tradierServiceFactory: Provider = {\n  provide: TradierService,\n  useFactory: () =\u003e {\n    return new TradierClient({\n      accessToken: tradierToken,\n      accountType: TradierAccountType.SANDBOX,\n    });\n  }\n}\n\n@Module({\n  imports: [],\n  providers: [\n    tradierServiceFactory,\n  ],\n  exports: [\n    TradierService,\n  ],\n})\nexport class TradierModule {}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebycorey%2Ftradier-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodebycorey%2Ftradier-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebycorey%2Ftradier-client/lists"}