coinbase / coinbase-pro-node

DEPRECATED — The official Node.js library for Coinbase Pro
Apache License 2.0
844 stars 316 forks source link

[Q] Whats the difference between authedClient.placeOrder and authedClient.sell #391

Closed matze19999 closed 5 years ago

matze19999 commented 5 years ago

Which one do I have to choose if I want to sell everything from a specific coin instantly?

Thanks!

vansergen commented 5 years ago

@matze19999 There is no difference. You can do both (buy and sell) with the placeOrder method. The sell method actually calls the placeOrder method: https://github.com/coinbase/coinbase-pro-node/blob/8bce637716bf73669337398fe53df24b2d25af1b/lib/clients/authenticated.js#L118-L121

matze19999 commented 5 years ago

Ahh, thank you! :)