
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
@reycodev/tradier-client
Advanced tools
Node.js Tradier Brokerage API written in typescript.
Current Functionality
Future Planned Functionality
Brokerage Reinvented.
Tradier is a REST-based, open, and secure API for investors, advisors, and traders.
You will receive your Tradier API Access Token after you create an account.
Depending on what type of account you create will determine the type of access token you will receive.
Note: Sandbox does not work with every endpoint and may contain delayed information.
npm i --save @reycodev/tradier-client
Initialize the client.
import { TradierAccountType, TradierClient, TradierClientOptions } from '@reycodev/tradier-client';
const options: TradierClientOptions = {
accessToken: '##########' // Token receieved after creating tradier account
accountType: TradierAccountType.SANDBOX // Depends on type of account created.
}
const tradier: TradierClient = new TradierClient(options);
Implemented Endpoints:
Examples:
// Get Quotes
tradier.market.getQuotes(['spy', 'amd'])
.then((response) => console.log('response', response))
.catch((error) => console.error(error));
// Get Option Questions
tradier.market.getOptionChains('spy', '2019-05-17')
.then((response) => console.log('response', response))
.catch((error) => console.error(error));
Implemented Endpoints:
Examples:
// Get Company Information
tradier.fundamentals.getCompany(['spy', 'amd'])
.then((response) => console.log('response', response))
.catch((error) => console.error(error));
// Get Corporate Calendars
tradier.fundamentals.getCorporateCalendars(['spy', 'amd'])
.then((response) => console.log('response', response))
.catch((error) => console.error(error));
Decisions:
Improvements:
Planned on creating a Nestjs library using this package. In the mean time, you can follow this to create your own.
tradier.service.ts
import { Injectable } from '@nestjs/common';
import { TradierClient } from '@reycodev/tradier-client';
@Injectable()
export class TradierService extends TradierClient {}
tradier.module.ts
import { Module, Provider } from '@nestjs/common';
import { TradierClient, TradierAccountType, TradierClientOptions } from '@reycodev/tradier-client';
import { TradierService } from './services';
// Recomend not commiting access token
const tradierToken: string = '######'
// Probably should be its own file.
const tradierServiceFactory: Provider = {
provide: TradierService,
useFactory: () => {
return new TradierClient({
accessToken: tradierToken,
accountType: TradierAccountType.SANDBOX,
});
}
}
@Module({
imports: [],
providers: [
tradierServiceFactory,
],
exports: [
TradierService,
],
})
export class TradierModule {}
FAQs
Node.js Tradier Brokerage API written in typescript.
The npm package @reycodev/tradier-client receives a total of 14 weekly downloads. As such, @reycodev/tradier-client popularity was classified as not popular.
We found that @reycodev/tradier-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.