Skip to content

React.js package which uses pancakeswap REST API to provide a live price of particular BEP-20 token and other necessary information. πŸ“‰πŸ“ˆ

License

Notifications You must be signed in to change notification settings

kuji2336/react-pancakeswap-token-price

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

react-pancakeswap-token-price Introduction

react-pancakeswap-token-price is a React.js package that uses pancakeswap REST API to provide a live price of a particular BEP-20 tokens and other necessary information. πŸ“‰πŸ“ˆ

Installation

npm i react-pancakeswap-token-price

Usage

import { useGetLivePrice } from "react-pancakeswap-token-price";

# returns pointed BEP-20 token price

  useEffect(()=>{
    getPrice('0xAe9269f27437f0fcBC232d39Ec814844a51d6b8f')
    .then((res)=> console.log(res))
  }, [])

Returned Values

interface IgetPriceValues {
    updated_at: Date
    data:{
        name: string,
        symbol: string,
        price: string,
        price_BNB: string
    }
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

React.js package which uses pancakeswap REST API to provide a live price of particular BEP-20 token and other necessary information. πŸ“‰πŸ“ˆ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published