Skip to content

Commit

Permalink
fix open interest
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Oct 16, 2023
1 parent 38f1406 commit d013347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dexs/contango/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const fetchVolume = async (timestamp: number) => {
const yesterday = response.yesterday.find((e: IAssetTotals) => e.id === asset.id);
const totalVolume = Number(asset.totalVolume) - Number(yesterday?.totalVolume || 0);
const totalFees = Number(asset.totalFees) - Number(yesterday?.totalFees || 0);
const openInterest = Number(asset.openInterest) - Number(yesterday?.openInterest || 0);
const openInterest = Math.abs(Number(asset.openInterest) - Number(yesterday?.openInterest || 0));
return {
id: asset.id,
openInterest: openInterest ? `${openInterest}` : 0,
Expand Down

0 comments on commit d013347

Please sign in to comment.