0.4.3 • Published 1 year ago

caeb-providers v0.4.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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')
maxNumOrdersnumberOptional 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 ❤️

0.3.6

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.4.3

1 year ago

0.4.2

2 years ago

0.3.5

2 years ago

0.3.0

2 years ago

0.3.1

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.2.6

2 years ago

0.2.2

3 years ago

0.2.1

3 years ago