def process_site_id(ctx, param, value):
    log.debug('GOT DEFAULT_SITE: %s' % ctx.obj.api.default_site)
    log.debug('GOT PROVIDED SITE_ID: %s' % value)

    # Try to get site_id from the app config, or complain that it's not set.
    if value is None:
        default_site = ctx.obj.api.default_site
        if default_site is None:
            raise click.UsageError('Missing option "-s" / "--site-id".')
        value = default_site
    else:
        log.debug('Setting provided site_id as default_site.')
        ctx.obj.api.default_site = value
    return value
Retrieve your balance.
dataset/ETHPy150Open dropbox/pynsot/pynsot/commands/callbacks.py/process_site_id--crossover with--dataset/ETHPy150Open messagebird/python-rest-api/messagebird/client.py/Client.balance