Socket
Book a DemoInstallSign in
Socket

caeb-providers

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caeb-providers

Providers CEX/DEX by Caeb Wallace

0.4.3
latest
Source
npmnpm
Version published
Weekly downloads
11
Maintainers
1
Weekly downloads
 
Created
Source

CAEB PROVIDERS

NPM Version

caeb-providers is a nodejs (TypeScript) library to provide universal interface to read balances and manage orders for supported providers.

This version is a proof of work for all my private tools in development.

All will be usable on v1.0.0, secure, but below please considers to use that library in your projects as dangerous to include.

Anyway, that lib is the foundation stone of a lot of my projects (portfolio, different kind of bots) to abstract the exchange behind blockchain interactions.

Install

yarn add caeb-providers

# - or -

npm i caeb-providers

Providers supported

  • Binance
  • Kucoin
  • FTX
  • [ ] DyDx
  • [ ] Gate.io
  • [ ] Ethereum
  • Polygon / Matic
  • Binance Smart Chain
  • Avalanche
  • Fantom Opera

Methods

List of abstract methods.

public async getExchangeInfo(): Promise<IAsset[]>

Returns all assets available on the network.

Key (IAsset)TypeDescription
baseAssetstringThe base asset (ie: BTC)
quoteAssetstringThe quote asset (ie: USDT)
pricePrecisionnumberBase asset count of decimals
quotePrecisionnumberQuote asset count of decimals
minPricenumberThe minimum quote asset price to create an order
maxPricenumberThe maximum quote asset price to create an order
minQtynumberThe minimum base asset size to create an order
stepSizenumberThe base asset size increment
minNotionalnumberThe minimum amount of quote asset to create an order
statusstringTrading is available for this pair ('TRADING' : 'LISTING')
maxNumOrdersnumber[Optional] Maximum number of orders for the pair

Documentation

Visit https://caebwallace.github.io/caeb-providers/ for extended informations and documentations.

Want to donate ?

If you like that project and my work, you can send me your favorite altcoin to my ERC20 / BEP20 wallet address : 0x1Ed970C1D3F9B85bA6607d45C752E22D9b0b09f4

Credits

Thanks to covalent, axios and web3 for their developments and products.

License

MIT

Made by Caeb WALLACE with ❤️

Keywords

CAEB

FAQs

Package last updated on 27 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.