Skip to content

Commit

Permalink
Merge branch 'main' of github.com:oraichain/oraidex-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
lehieuhust committed Aug 14, 2023
2 parents 00d04d2 + 79c38da commit 56544ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/oraidex-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oraichain/oraidex-server",
"version": "1.0.4",
"version": "1.0.5",
"main": "dist/index.js",
"bin": "dist/index.js",
"license": "MIT",
Expand Down
3 changes: 2 additions & 1 deletion packages/oraidex-sync/src/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ export class DuckDb {
}

async insertOhlcv(ohlcv: Ohlcv[]) {
await this.insertBulkData(ohlcv, "swap_ohlcv");
const filtedOhlcv = ohlcv.filter((item) => item.open != 0 && item.close != 0 && item.low != 0 && item.high != 0);
await this.insertBulkData(filtedOhlcv, "swap_ohlcv");
}

async getOhlcvCandles(query: GetCandlesQuery): Promise<Ohlcv[]> {
Expand Down

0 comments on commit 56544ec

Please sign in to comment.