Methods
Examples assume:
from tribulnation.sdk import WalletSDK
wallet = WalletSDK.load('sdk.toml')deposit_methods
deposit_methods(*, assets=None) -> Sequence[DepositMethod]Fetch the ways to deposit: one entry per asset and network.
Args
assets: Keep methods for these assets only.
sdk = wallet.venue('binance')
async with sdk:
methods = await sdk.deposit_methods()
print('binance', len(methods), 'methods')binance 2 methodsReads the native per-asset network list.
sdk = wallet.venue('bit2me')
async with sdk:
methods = await sdk.deposit_methods()
print('bit2me', len(methods), 'methods')bit2me 2 methodssdk = wallet.venue('bitget')
async with sdk:
methods = await sdk.deposit_methods()
print('bitget', len(methods), 'methods')bitget 2 methodssdk = wallet.venue('bybit')
async with sdk:
methods = await sdk.deposit_methods()
print('bybit', len(methods), 'methods')bybit 2 methodsPublic currency metadata; published fees/confirmations are currency-level, not network-specific transaction quotes.
sdk = wallet.venue('deribit')
async with sdk:
methods = await sdk.deposit_methods()
print('deribit', len(methods), 'methods')deribit 2 methodsEnabled chains only; withdrawal fees are published per-chain minimums.
sdk = wallet.venue('kucoin')
async with sdk:
methods = await sdk.deposit_methods()
print('kucoin', len(methods), 'methods')kucoin 2 methodssdk = wallet.venue('mexc')
async with sdk:
methods = await sdk.deposit_methods()
print('mexc', len(methods), 'methods')mexc 2 methodswithdrawal_methods
withdrawal_methods(*, assets=None, networks=None) -> Sequence[WithdrawalMethod]Fetch the ways to withdraw: one entry per asset and network, with its fee.
Args
assets: Keep methods for these assets only.networks: Keep methods on these networks only.
sdk = wallet.venue('binance')
async with sdk:
methods = await sdk.withdrawal_methods()
print('binance', len(methods), 'methods')binance 2 methodsRequires configured quote_addresses for live proforma fees; only configured destinations are quoted.
sdk = wallet.venue('bit2me')
async with sdk:
methods = await sdk.withdrawal_methods()
print('bit2me', len(methods), 'methods')bit2me 2 methodssdk = wallet.venue('bitget')
async with sdk:
methods = await sdk.withdrawal_methods()
print('bitget', len(methods), 'methods')bitget 2 methodssdk = wallet.venue('bybit')
async with sdk:
methods = await sdk.withdrawal_methods()
print('bybit', len(methods), 'methods')bybit 2 methodsPublic currency metadata; published fees/confirmations are currency-level, not network-specific transaction quotes.
sdk = wallet.venue('deribit')
async with sdk:
methods = await sdk.withdrawal_methods()
print('deribit', len(methods), 'methods')deribit 2 methodsNative display network names and flat fees. Deposit methods are not implemented.
sdk = wallet.venue('kraken')
async with sdk:
methods = await sdk.withdrawal_methods()
print('kraken', len(methods), 'methods')kraken 2 methodsEnabled chains only; withdrawal fees are published per-chain minimums.
sdk = wallet.venue('kucoin')
async with sdk:
methods = await sdk.withdrawal_methods()
print('kucoin', len(methods), 'methods')kucoin 2 methodssdk = wallet.venue('mexc')
async with sdk:
methods = await sdk.withdrawal_methods()
print('mexc', len(methods), 'methods')mexc 2 methods