Skip to content

2hyunbin/grpc-stream-client-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

You first need a full node with gRPC streaming enabled.

  1. Install dependencies:

    npm install
  2. Create a .env file

    INDEXER_API=https://indexer.dydx.trade
    FULL_NODE_HOST=
    
    CLOB_PAIR_IDS=0 1
    SUBACCOUNT_IDS=
    
    USE_GRPC= true or empty
    GRPC_PORT=
    
    USE_WEBSOCKET= true or empty
    WEBSOCKET_PORT=
    
    INTERVAL_MS=
    
    PRINT_BOOKS= true or empty
    PRINT_FILLS= true or empty
    PRINT_ACCOUNTS= true or empty
    PRINT_TAKER_ORDERS= true or empty
    
  3. Build & Start

    npm run build
    npm start 

Book Streaming Example

Example output:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors