Back to Trending
RepositoryTypeScript
sieblyio

sieblyio/awesome-crypto-examples

Examples for working with crypto exchange APIs & WebSockets in Node.js & TypeScript. Algo trading snippets & examples.

102stars
26forks
2issues
0views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: okx-api

#1 Repository of the month

1
TINIX TRENDING·Topic: bitget

#1 Repository of the week

1
TINIX TRENDING·Topic: bybit-api

#1 Repository of the week

Awesome crypto examples

Build & Test last commit Telegram

Wondering how to "[insert something crypto & nodejs related]"? Welcome to a loose collection of node.js examples and demos in the world of algo trading (especially cryptocurrencies).

What kind of examples?

  • Working with crypto exchange REST APIs
  • Working with crypto exchange WebSocket streams
  • Anything else crypto + node.js?

Note: these are not meant to suggest best practices. These are purely demonstrations for one (or more) way(s) for doing various things.

Getting started

All examples are in node.js and/or typescript.

  • Ensure you have node.js installed (see .nvmrc for the recommended version (or above))
  • Install dependencies: npm install

Frequenty Asked Questions

Check out the wiki. Contributions welcome: https://github.com/tiagosiebler/awesome-crypto-examples/wiki

Running examples (node.js)

Node.js examples will be any file that ends with .js. If the example has a readme, refer to the readme for specific instructions, otherwise use the following command to run the example with node.js:

node src/path/to/example.js

Running examples (typescript)

Typescript examples will be any file that ends with .ts. If the example has a readme, refer to the readme for specific instructions, otherwise use the following command to run the example with typescript's ts-node:

npx ts-node src/path/to/example.ts

Refer to the following documentation for guidance on ts-node: https://www.npmjs.com/package/ts-node#overview

Providing API keys

Some examples make private API calls (e.g. the account monitoring ones). These rely on API credentials to make signed API calls to your account.

Either locally download a copy of this repo and edit the values directly, or provide these as environmental variables. If a sample has the following process.env snippet:

const key = process.env.APIKEY || 'APIKEY';
const secret = process.env.APISECRET || 'APISECRET';

You can provide your API credentials (in unix & macOS environments) when executing the sample:

APIKEY="yourkeyhere" APISECRET="yoursecrethere" npx ts-node src/exchanges/binance/account-events/log-account-events.ts

Contributing

PRs for various concepts welcome. Typescript preferred, but plain javascript is also OK.

  • Not sure what to add?
    • What would've helped you when you were first getting started?
  • How big can a demonstration be?
    • If it's useful & reasonable for others to learn from, as big as you want!
  • Stuck on a problem and looking for a related sample?

Contributions & Thanks

Have my projects helped you? Share the love, there are many ways you can show your thanks:

Contributions & Pull Requests

Contributions are encouraged, I will review any incoming pull requests. See the issues tab for todo items.

Check out our JavaScript/TypeScript/Node.js SDKs & Projects:

Star History

Star History Chart

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
ccxt/ccxt

A unified trading API with more than 100 crypto exchanges and prediction markets in JavaScript / TypeScript / Python / C# / PHP / Go / Java / Rust

45.0k
Nov 27, 2026
RepositoryPython
bmoscon/cryptofeed

Cryptocurrency Exchange Websocket Data Feed Handler

3.0k
Nov 27, 2026
RepositoryGo
NoFxAiOS/nofx

Your AI trading terminal assistant for US stocks, commodities, forex, and crypto.

13.4k
Nov 4, 2026
RepositoryC++
trustwallet/wallet-core

Cross-platform, cross-blockchain wallet library.

3.6k
Nov 30, 2026
RepositoryC++
bitcoin/bitcoin

Bitcoin Core integration/staging tree

90.8k
Nov 26, 2026
RepositoryPython
freqtrade/freqtrade

Free, open source crypto trading bot

57.4k
Nov 29, 2026
RepositoryPython
hummingbot/hummingbot

Open source software that helps you create and deploy high-frequency crypto trading bots

21.4k
Nov 27, 2026
RepositoryTypeScript
chrisleekr/binance-trading-bot

Automated Binance trading bot with pluggable strategies, historical backtesting, a live dashboard, and connect an AI agent over MCP

5.6k
Dec 2, 2026
RepositoryTypeScript
BlueWallet/BlueWallet

Bitcoin wallet for iOS & Android. Built with React Native

3.4k
Nov 27, 2026