def getTransactionRate(trans):
    """
    Given a transaction object (from the "data" list returned by get_transactions API call), 
    returns the worth of the cryptocurrency in the native currency at the transaction time.
    """
    crypto = abs(float(trans.amount.amount))
    native = abs(float(trans.native_amount.amount))
    return native / crypto