Skip to content

coinex: withdraw v2 #22637

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

Merged
merged 2 commits into from
May 28, 2024
Merged

coinex: withdraw v2 #22637

merged 2 commits into from
May 28, 2024

Conversation

Dan-krm
Copy link
Contributor

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

Updated withdraw to v2:

node examples/js/cli coinex withdraw USDT 15 TY5vq3MT6b5cWHtpGyPg1ERcQgiUN undefined '{"network":"TRX"}'

{
  info: {
    withdraw_id: 31193755,
    created_at: 1716874165038,
    withdraw_method: 'ON_CHAIN',
    ccy: 'USDT',
    amount: '17.3',
    actual_amount: '15',
    chain: 'TRC20',
    tx_fee: '2.3',
    fee_asset: 'USDT',
    fee_amount: '2.3',
    to_address: 'TY5vq3MT6b5cWHtpGyPg1ERQgi3UN',
    memo: '',
    tx_id: '',
    confirmations: 0,
    explorer_address_url: 'https://tronscan.org/#/address,
    explorer_tx_url: 'https://tronscan.org/#/transaction/',
    remark: '',
    status: 'audit_required'
  },
  id: '31193755',
  timestamp: 1716874165038,
  datetime: '2024-05-28T05:29:25.038Z',
  network: 'TRX',
  address: 'TY5vq3MT6b5cHtpGyPg1ERcQgi3UN',
  addressTo: 'TY5vq3MT6b5cWHtpGyPg1ERcQgi3N',
  type: 'withdrawal',
  amount: 15,
  currency: 'USDT',
  status: 'audit_required',
  fee: { cost: 2.3, currency: 'USDT' },
  internal: false
}

Dan-krm added 2 commits May 27, 2024 23:40
```
node examples/js/cli coinex withdraw USDT 15 TY5vq3MT6b5cQVAHWHtpGyPg1ERcQgi3UN undefined '{"network":"TRX"}'

{
  info: {
    withdraw_id: 31193755,
    created_at: 1716874165038,
    withdraw_method: 'ON_CHAIN',
    ccy: 'USDT',
    amount: '17.3',
    actual_amount: '15',
    chain: 'TRC20',
    tx_fee: '2.3',
    fee_asset: 'USDT',
    fee_amount: '2.3',
    to_address: 'TY5vq3MT6b5cQVAHWHtpGyPg1ERcQgi3UN',
    memo: '',
    tx_id: '',
    confirmations: 0,
    explorer_address_url: 'https://tronscan.org/#/address/TY5vq3MT6b5cQVAHWHtpGyPg1ERcQgi3UN',
    explorer_tx_url: 'https://tronscan.org/#/transaction/',
    remark: '',
    status: 'audit_required'
  },
  id: '31193755',
  timestamp: 1716874165038,
  datetime: '2024-05-28T05:29:25.038Z',
  network: 'TRX',
  address: 'TY5vq3MT6b5cQVAHWHtpGyPg1ERcQgi3UN',
  addressTo: 'TY5vq3MT6b5cQVAHWHtpGyPg1ERcQgi3UN',
  type: 'withdrawal',
  amount: 15,
  currency: 'USDT',
  status: 'audit_required',
  fee: { cost: 2.3, currency: 'USDT' },
  internal: false
}
```
@Dan-krm Dan-krm requested a review from carlosmiei May 28, 2024 05:42
@Dan-krm Dan-krm requested review from kroitor and frosty00 as code owners May 28, 2024 05:42
@carlosmiei carlosmiei self-assigned this May 28, 2024
@carlosmiei carlosmiei merged commit d6ca213 into ccxt:master May 28, 2024
2 checks passed
kroitor pushed a commit that referenced this pull request May 28, 2024
* refactor(coinex): withdraw v2

```
node examples/js/cli coinex withdraw USDT 15 TY5vq3MT6b5cQVAHWHtpGyPg1ERcQgi3UN undefined '{"network":"TRX"}'

{
  info: {
    withdraw_id: 31193755,
    created_at: 1716874165038,
    withdraw_method: 'ON_CHAIN',
    ccy: 'USDT',
    amount: '17.3',
    actual_amount: '15',
    chain: 'TRC20',
    tx_fee: '2.3',
    fee_asset: 'USDT',
    fee_amount: '2.3',
    to_address: 'TY5vq3MT6b5cQVAHWHtpGyPg1ERcQgi3UN',
    memo: '',
    tx_id: '',
    confirmations: 0,
    explorer_address_url: 'https://tronscan.org/#/address/TY5vq3MT6b5cQVAHWHtpGyPg1ERcQgi3UN',
    explorer_tx_url: 'https://tronscan.org/#/transaction/',
    remark: '',
    status: 'audit_required'
  },
  id: '31193755',
  timestamp: 1716874165038,
  datetime: '2024-05-28T05:29:25.038Z',
  network: 'TRX',
  address: 'TY5vq3MT6b5cQVAHWHtpGyPg1ERcQgi3UN',
  addressTo: 'TY5vq3MT6b5cQVAHWHtpGyPg1ERcQgi3UN',
  type: 'withdrawal',
  amount: 15,
  currency: 'USDT',
  status: 'audit_required',
  fee: { cost: 2.3, currency: 'USDT' },
  internal: false
}
```

* test(coinex): static request, withdraw v2

[ci skip]
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.

2 participants