tiagosiebler / ftx-api

Node.js connector for the FTX.com & FTX.us APIs and WebSockets, with TypeScript & browser support.
https://www.npmjs.com/package/ftx-api
MIT License
123 stars 47 forks source link

Dust endpoints #50

Closed dannyhines closed 2 years ago

dannyhines commented 2 years ago

closes #49

This PR includes 3 functions for the "dust" endpoints, which is used for converting small amounts of different coins to a base currency all at once. These endpoints are undocumented but they're currently used by the FTX web app in production.

on the client side it behaves the same as the OTC "convert" endpoints: the requestDust() function returns a quoteId that can be accepted with acceptDust(quoteId)