4ley / nodejs-bitcoin-de-api

NodeJS bitcoin.de API
https://www.npmjs.com/package/bitcoinde-api
MIT License
10 stars 6 forks source link

change the API to be more high-level? #6

Open neuhaus opened 6 years ago

neuhaus commented 6 years ago

Right now it's a pretty low-level library with commands such as

bitcoinde.get('orders', { type: 'sell' })

What are your thoughts on providing more high-level functions such as

bitcoinde.getOrderbook()

? That function could retrieve the buy and sell orders in parallel and return them as one. That's just one example.

4ley commented 6 years ago

Sounds good. Let's add a parameter to selectively choose order type or none for all orders. What do you think?

neuhaus commented 6 years ago

Yes that's probably necessary due to the filtering that the API offers. Also there all those other methods in their API as well.

4ley commented 6 years ago

True.

What do you think about adding sockets support?

neuhaus commented 6 years ago

Would be a great addition and some work...

4ley commented 6 years ago

Agree

neuhaus commented 6 years ago

Or adding support to ccxt...

4ley commented 6 years ago

What do you mean by that? How would this look like?

neuhaus commented 6 years ago

There is a library on npm called ccxt that supports many marketplaces. bitcoin.de has quite a few quirks because it's not a real marketplace but I guess it could be supported.