Skip to content
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

coinex: transfer v2 #22511

Merged
merged 3 commits into from
May 16, 2024
Merged

coinex: transfer v2 #22511

merged 3 commits into from
May 16, 2024

Conversation

Dan-krm
Copy link
Contributor

@Dan-krm Dan-krm commented May 16, 2024

Updated transfer to v2:

coinex.transfer (USDT, 10, spot, swap)
2024-05-16T08:34:39.616Z iteration 0 passed in 273 ms

{
  currency: 'USDT',
  amount: 10,
  fromAccount: 'spot',
  toAccount: 'swap',
  status: 'ok'
}

Updated transfer to v2:
```
coinex.transfer (USDT, 10, spot, swap)
2024-05-16T08:34:39.616Z iteration 0 passed in 273 ms

{
  currency: 'USDT',
  amount: 10,
  fromAccount: 'spot',
  toAccount: 'swap',
  status: 'ok'
}
```
ts/src/coinex.ts Outdated
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
*/
await this.loadMarkets ();
const currency = this.currency (code);
const amountToPrecision = this.currencyToPrecision (code, amount);
const accountsById = this.safeValue (this.options, 'accountsById', {});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Dan-krm let's avoid safeValue pls

@carlosmiei carlosmiei self-assigned this May 16, 2024
@carlosmiei carlosmiei merged commit 97d29a5 into ccxt:master May 16, 2024
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants