from requests import Session


class OandaSession(Session):

    def send(self, request, **kwargs):
        res = super().send(request)
        res_json = res.json()
        if 'lastTransactionID' in res_json:
            last_transaction_id = res_json.pop('lastTransactionID')
        else:
            last_transaction_id = None
        return res_json, last_transaction_id

ee0f8eb9c24a0f560b42f02a2f0d3cd9ed2ee5c0
<mask token>

<mask token>


class OandaSession(Session):
    <mask token>

<mask token>


class OandaSession(Session):

    def send(self, request, **kwargs):
        res = super().send(request)
        res_json = res.json()
        if 'lastTransactionID' in res_json:
            last_transaction_id = res_json.pop('lastTransactionID')
        else:
            last_transaction_id = None
        return res_json, last_transaction_id

from requests import Session


class OandaSession(Session):

    def send(self, request, **kwargs):
        res = super().send(request)
        res_json = res.json()
        if 'lastTransactionID' in res_json:
            last_transaction_id = res_json.pop('lastTransactionID')
        else:
            last_transaction_id = None
        return res_json, last_transaction_id
