Git Product home page Git Product logo

awesome-crypto-examples's Introduction

awesome-crypto-examples

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.

Related projects

Check out my related projects:

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?

awesome-crypto-examples's People

Contributors

qbkjovfnek avatar tiagosiebler avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.