def get_latest_ledger(client):
    """Return latest ledger dictionary using given KinClient."""
    params = {'order': 'desc', 'limit': 1}
    return client.horizon.ledgers(params=params)['_embedded']['records'][0]