def GetSpDiff(ea):
    func = idaapi.get_func(ea)

    if not func:
        return None

    return idaapi.get_sp_delta(func, ea)
Get modification of SP made by the instruction
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/GetSpDiff