This project is a client library to interact with the UnusualWhales API, written in TypeScript. It aims to simplify the process of making API calls by providing a set of well-defined methods for accessing various endpoints. This library can be used in both JavaScript and TypeScript projects. Using TypeScript enhances type safety, enabling more robust and error-free API interactions.
To install the package:
npm install @airnub/unusualwhales-api-client
To build the TypeScript source code:
npm run build
const api = new ApiClient({
token: 'your-bearer-token',
});
const response = await api.stock.getNetPremiumTicks('SPY');
api.stock.getNetPremiumTicks('SPY')
.then((response) => {
// Your code here
})
.catch((error) => {
console.error('An error occurred:', error);
});
Contributions are welcome. Please fork this repository and submit your changes via a pull request.
- Fork the repository
- Create a new branch (
git checkout -b feature-branch
) - Commit your changes (
git commit -m 'Add some feature'
) - Push to the branch (
git push origin feature-branch
) - Create a new Pull Request
If you encounter any issues or have questions, please use the GitHub issues page to report them. This helps us keep track of all the queries and solve them in an organized manner.
This project is licensed under the terms of the MIT License.