export const useGqlTransactionHistory = (
portfolio: string,
skip: number = 0,
take: number = 100
) => {
return useQuery(GET_TRANSACTION_HISTORY, {
variables: {
where: {
portfolio_id: { equals: portfolio },
},
take,
skip,
},
fetchPolicy: "cache-and-network",
});
};