-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to perform trades? #3870
Comments
you still need assistance ? |
@Antuan03 I was able to trade using the REST API, instead of the SDK using this endpoint https://developers.bitgo.com/api/trade.orders.add - I've got to admit it was a bit confusing, especially in the testing env, but I managed to make it work. Perhaps more working examples (both for the testing and prod envs) would be appreciated. It also was not clear to me what was supported by the SDK and what wasn't, so I ended up using the REST API for everything. Other than that, you can close this issue if you want |
via the sdk ` const bitgo = new BitGo({
const transaction1 = await wallet.send(userParams); console.log( transaction1) good luck!! |
@Antuan03 but that's to send crypto, not for trading, which is this issue about 🤔 |
oh my bad :x |
I don't think we can perform trade using bitgo sdk. I have gone through the whole doc when i was looking for the same but didn't found any. So i performed the trade using API. |
I'm looking to trade some ETH to USDC (or at least, I'm first trying to do so in goerli testchain).
The REST API has some operations for that, but I can't find how to do so in the js SDK. Is it supported? Or should I go through the REST API?
The text was updated successfully, but these errors were encountered: