Coder Social home page Coder Social logo

r3alst / bep20-ticker Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 368 KB

Price feeds extractor using Pancakeswap Router

License: BSD 3-Clause "New" or "Revised" License

JavaScript 96.35% Shell 1.98% Dockerfile 1.66%
blockchain binance-smart-chain javascript docker

bep20-ticker's Introduction

BEP20 Ticker

This repo includes docker compose configuration and bep20 image code. It can be used to set up a bep20 token container for price feeds.

Development

Install dependencies:

yarn install 

Setup Environment:

  1. create a file in root named as env
  2. add following variables according your setup
export FROM_TOKEN="0x0b15Ddf19D47E6a86A56148fb4aFFFc6929BcB89"
export TO_TOKEN="0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56"
export AMOUNT_IN="500"
export PAIR_NAME="IDIABUSD"
export TICKER_MANAGER="http://localhost:8000"
  1. run source ./env to load environment variables.

Hint: AMOUNT_IN means how many units it will try to check rate, its required because pancake router increases/decrease rate according units you want to sell or buy.

To use Docker build:

  1. copy/rename docker-compose.yml.example as docker-compose.yml
  2. change contract addresses according your tokens/pair and ticker manager url.
  3. run docker-compose up -d

OPTIONAL: Please support me by contributing to project or to following BSC/ERC/MATIC address. 0x200753090BC55A39Ff790150143D28635f0E87bb

bep20-ticker's People

Contributors

r3alst avatar

Watchers

 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.