├── .dockerignore ├── .env.example ├── .gitignore ├── .npmrc ├── .vscode └── settings.json ├── README.md ├── apps ├── server │ ├── Dockerfile │ ├── package.json │ ├── src │ │ ├── index.ts │ │ └── routes │ │ │ ├── balanceRouter.ts │ │ │ ├── depthRouter.ts │ │ │ ├── orderRouter.ts │ │ │ └── positionRouter.ts │ ├── tsconfig.json │ └── tsconfig.tsbuildinfo └── web │ ├── .gitignore │ ├── Dockerfile │ ├── README.md │ ├── app │ ├── api │ │ ├── auth │ │ │ └── [...nextauth] │ │ │ │ └── route.ts │ │ ├── request-otp │ │ │ └── route.ts │ │ └── verify-otp │ │ │ └── route.ts │ ├── auth │ │ └── page.tsx │ ├── components │ │ ├── ChartSection.tsx │ │ ├── Footer.tsx │ │ ├── Header.tsx │ │ ├── Hero.tsx │ │ ├── MarketTabs.tsx │ │ ├── OrderBook.tsx │ │ ├── OrderEntry.tsx │ │ ├── PositionTable.tsx │ │ ├── PriceTicker.tsx │ │ └── TradingViewChart.tsx │ ├── favicon.ico │ ├── fonts │ │ ├── GeistMonoVF.woff │ │ └── GeistVF.woff │ ├── globals.css │ ├── hooks │ │ ├── useNextCutOffCountdown.ts │ │ └── useWebSocket.ts │ ├── layout.tsx │ ├── page.module.css │ ├── page.tsx │ ├── sessionWrapper.tsx │ ├── trade │ │ └── page.tsx │ └── utils │ │ └── mockData.ts │ ├── eslint.config.js │ ├── middleware.ts │ ├── next.config.js │ ├── package.json │ ├── postcss.config.mjs │ └── tsconfig.json ├── docker-compose.yml ├── package.json ├── packages ├── db │ ├── .gitignore │ ├── package.json │ ├── prisma │ │ ├── migrations │ │ │ ├── 20250423070238_init │ │ │ │ └── migration.sql │ │ │ ├── 20250423071647_archiver_fixes │ │ │ │ └── migration.sql │ │ │ ├── 20250423074309_archiver_fixes │ │ │ │ └── migration.sql │ │ │ ├── 20250423074609_archiver_fixes │ │ │ │ └── migration.sql │ │ │ ├── 20250423090831_depth │ │ │ │ └── migration.sql │ │ │ ├── 20250423100455_ │ │ │ │ └── migration.sql │ │ │ ├── 20250423103732_ │ │ │ │ └── migration.sql │ │ │ ├── 20250424162730_ │ │ │ │ └── migration.sql │ │ │ └── migration_lock.toml │ │ └── schema.prisma │ ├── src │ │ └── index.ts │ ├── tsconfig.json │ └── tsconfig.tsbuildinfo ├── eslint-config │ ├── README.md │ ├── base.js │ ├── next.js │ ├── package.json │ └── react-internal.js ├── event-queue │ ├── package.json │ ├── src │ │ ├── RedisManager.ts │ │ ├── SubscriptionManager.ts │ │ ├── bullQueue.ts │ │ └── index.ts │ ├── tsconfig.json │ └── tsconfig.tsbuildinfo ├── queue │ ├── Dockerfile │ ├── package.json │ ├── src │ │ ├── bullmq │ │ │ ├── orderQueue.ts │ │ │ └── worker.ts │ │ └── index.ts │ ├── tsconfig.json │ └── tsconfig.tsbuildinfo ├── types │ ├── package.json │ ├── src │ │ └── index.ts │ ├── tsconfig.json │ └── tsconfig.tsbuildinfo ├── typescript-config │ ├── base.json │ ├── nextjs.json │ ├── package.json │ └── react-library.json └── ui │ ├── eslint.config.mjs │ ├── package.json │ ├── src │ ├── button.tsx │ ├── card.tsx │ └── code.tsx │ ├── tsconfig.json │ └── turbo │ └── generators │ ├── config.ts │ └── templates │ └── component.hbs ├── pnpm-lock.yaml ├── pnpm-workspace.yaml ├── services ├── archiver │ ├── Dockerfile │ ├── package.json │ ├── src │ │ └── index.ts │ ├── tsconfig.json │ └── tsconfig.tsbuildinfo ├── engine │ ├── package.json │ ├── src │ │ ├── Engine.ts │ │ ├── Orderbook.ts │ │ ├── S3Manager.ts │ │ └── index.ts │ ├── tsconfig.json │ └── tsconfig.tsbuildinfo ├── funding-schedular │ ├── Dockerfile │ ├── package.json │ ├── src │ │ └── index.ts │ ├── tsconfig.json │ └── tsconfig.tsbuildinfo ├── oracle │ ├── Dockerfile │ ├── package.json │ ├── src │ │ ├── fetchBinanceWs.ts │ │ ├── fetchTopOfBook.ts │ │ ├── index.ts │ │ ├── marketDataBus.ts │ │ └── publisher.ts │ ├── tsconfig.json │ └── tsconfig.tsbuildinfo ├── position-liquidator │ ├── Dockerfile │ ├── package.json │ ├── src │ │ ├── Liquidator.ts │ │ ├── index.ts │ │ └── worker.ts │ ├── tsconfig.json │ └── tsconfig.tsbuildinfo └── wss │ ├── Dockerfile │ ├── package.json │ ├── src │ └── index.ts │ ├── tsconfig.json │ └── tsconfig.tsbuildinfo └── turbo.json /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/.dockerignore -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/README.md -------------------------------------------------------------------------------- /apps/server/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/server/Dockerfile -------------------------------------------------------------------------------- /apps/server/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/server/package.json -------------------------------------------------------------------------------- /apps/server/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/server/src/index.ts -------------------------------------------------------------------------------- /apps/server/src/routes/balanceRouter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/server/src/routes/balanceRouter.ts -------------------------------------------------------------------------------- /apps/server/src/routes/depthRouter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/server/src/routes/depthRouter.ts -------------------------------------------------------------------------------- /apps/server/src/routes/orderRouter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/server/src/routes/orderRouter.ts -------------------------------------------------------------------------------- /apps/server/src/routes/positionRouter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/server/src/routes/positionRouter.ts -------------------------------------------------------------------------------- /apps/server/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/server/tsconfig.json -------------------------------------------------------------------------------- /apps/server/tsconfig.tsbuildinfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/server/tsconfig.tsbuildinfo -------------------------------------------------------------------------------- /apps/web/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/.gitignore -------------------------------------------------------------------------------- /apps/web/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/Dockerfile -------------------------------------------------------------------------------- /apps/web/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/README.md -------------------------------------------------------------------------------- /apps/web/app/api/auth/[...nextauth]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/api/auth/[...nextauth]/route.ts -------------------------------------------------------------------------------- /apps/web/app/api/request-otp/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/api/request-otp/route.ts -------------------------------------------------------------------------------- /apps/web/app/api/verify-otp/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/api/verify-otp/route.ts -------------------------------------------------------------------------------- /apps/web/app/auth/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/auth/page.tsx -------------------------------------------------------------------------------- /apps/web/app/components/ChartSection.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/components/ChartSection.tsx -------------------------------------------------------------------------------- /apps/web/app/components/Footer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/components/Footer.tsx -------------------------------------------------------------------------------- /apps/web/app/components/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/components/Header.tsx -------------------------------------------------------------------------------- /apps/web/app/components/Hero.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/components/Hero.tsx -------------------------------------------------------------------------------- /apps/web/app/components/MarketTabs.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/components/MarketTabs.tsx -------------------------------------------------------------------------------- /apps/web/app/components/OrderBook.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/components/OrderBook.tsx -------------------------------------------------------------------------------- /apps/web/app/components/OrderEntry.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/components/OrderEntry.tsx -------------------------------------------------------------------------------- /apps/web/app/components/PositionTable.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/components/PositionTable.tsx -------------------------------------------------------------------------------- /apps/web/app/components/PriceTicker.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/components/PriceTicker.tsx -------------------------------------------------------------------------------- /apps/web/app/components/TradingViewChart.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/components/TradingViewChart.tsx -------------------------------------------------------------------------------- /apps/web/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/favicon.ico -------------------------------------------------------------------------------- /apps/web/app/fonts/GeistMonoVF.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/fonts/GeistMonoVF.woff -------------------------------------------------------------------------------- /apps/web/app/fonts/GeistVF.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/fonts/GeistVF.woff -------------------------------------------------------------------------------- /apps/web/app/globals.css: -------------------------------------------------------------------------------- 1 | @import "tailwindcss"; -------------------------------------------------------------------------------- /apps/web/app/hooks/useNextCutOffCountdown.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/hooks/useNextCutOffCountdown.ts -------------------------------------------------------------------------------- /apps/web/app/hooks/useWebSocket.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/hooks/useWebSocket.ts -------------------------------------------------------------------------------- /apps/web/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/layout.tsx -------------------------------------------------------------------------------- /apps/web/app/page.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/page.module.css -------------------------------------------------------------------------------- /apps/web/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/page.tsx -------------------------------------------------------------------------------- /apps/web/app/sessionWrapper.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/sessionWrapper.tsx -------------------------------------------------------------------------------- /apps/web/app/trade/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/trade/page.tsx -------------------------------------------------------------------------------- /apps/web/app/utils/mockData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/app/utils/mockData.ts -------------------------------------------------------------------------------- /apps/web/eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/eslint.config.js -------------------------------------------------------------------------------- /apps/web/middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/middleware.ts -------------------------------------------------------------------------------- /apps/web/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/next.config.js -------------------------------------------------------------------------------- /apps/web/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/package.json -------------------------------------------------------------------------------- /apps/web/postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/postcss.config.mjs -------------------------------------------------------------------------------- /apps/web/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/apps/web/tsconfig.json -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/package.json -------------------------------------------------------------------------------- /packages/db/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/db/.gitignore -------------------------------------------------------------------------------- /packages/db/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/db/package.json -------------------------------------------------------------------------------- /packages/db/prisma/migrations/20250423070238_init/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/db/prisma/migrations/20250423070238_init/migration.sql -------------------------------------------------------------------------------- /packages/db/prisma/migrations/20250423071647_archiver_fixes/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/db/prisma/migrations/20250423071647_archiver_fixes/migration.sql -------------------------------------------------------------------------------- /packages/db/prisma/migrations/20250423074309_archiver_fixes/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/db/prisma/migrations/20250423074309_archiver_fixes/migration.sql -------------------------------------------------------------------------------- /packages/db/prisma/migrations/20250423074609_archiver_fixes/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/db/prisma/migrations/20250423074609_archiver_fixes/migration.sql -------------------------------------------------------------------------------- /packages/db/prisma/migrations/20250423090831_depth/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/db/prisma/migrations/20250423090831_depth/migration.sql -------------------------------------------------------------------------------- /packages/db/prisma/migrations/20250423100455_/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/db/prisma/migrations/20250423100455_/migration.sql -------------------------------------------------------------------------------- /packages/db/prisma/migrations/20250423103732_/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/db/prisma/migrations/20250423103732_/migration.sql -------------------------------------------------------------------------------- /packages/db/prisma/migrations/20250424162730_/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/db/prisma/migrations/20250424162730_/migration.sql -------------------------------------------------------------------------------- /packages/db/prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/db/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /packages/db/prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/db/prisma/schema.prisma -------------------------------------------------------------------------------- /packages/db/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/db/src/index.ts -------------------------------------------------------------------------------- /packages/db/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/db/tsconfig.json -------------------------------------------------------------------------------- /packages/db/tsconfig.tsbuildinfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/db/tsconfig.tsbuildinfo -------------------------------------------------------------------------------- /packages/eslint-config/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/eslint-config/README.md -------------------------------------------------------------------------------- /packages/eslint-config/base.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/eslint-config/base.js -------------------------------------------------------------------------------- /packages/eslint-config/next.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/eslint-config/next.js -------------------------------------------------------------------------------- /packages/eslint-config/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/eslint-config/package.json -------------------------------------------------------------------------------- /packages/eslint-config/react-internal.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/eslint-config/react-internal.js -------------------------------------------------------------------------------- /packages/event-queue/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/event-queue/package.json -------------------------------------------------------------------------------- /packages/event-queue/src/RedisManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/event-queue/src/RedisManager.ts -------------------------------------------------------------------------------- /packages/event-queue/src/SubscriptionManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/event-queue/src/SubscriptionManager.ts -------------------------------------------------------------------------------- /packages/event-queue/src/bullQueue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/event-queue/src/bullQueue.ts -------------------------------------------------------------------------------- /packages/event-queue/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/event-queue/src/index.ts -------------------------------------------------------------------------------- /packages/event-queue/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/event-queue/tsconfig.json -------------------------------------------------------------------------------- /packages/event-queue/tsconfig.tsbuildinfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/event-queue/tsconfig.tsbuildinfo -------------------------------------------------------------------------------- /packages/queue/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/queue/Dockerfile -------------------------------------------------------------------------------- /packages/queue/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/queue/package.json -------------------------------------------------------------------------------- /packages/queue/src/bullmq/orderQueue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/queue/src/bullmq/orderQueue.ts -------------------------------------------------------------------------------- /packages/queue/src/bullmq/worker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/queue/src/bullmq/worker.ts -------------------------------------------------------------------------------- /packages/queue/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/queue/src/index.ts -------------------------------------------------------------------------------- /packages/queue/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/queue/tsconfig.json -------------------------------------------------------------------------------- /packages/queue/tsconfig.tsbuildinfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/queue/tsconfig.tsbuildinfo -------------------------------------------------------------------------------- /packages/types/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/types/package.json -------------------------------------------------------------------------------- /packages/types/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/types/src/index.ts -------------------------------------------------------------------------------- /packages/types/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/types/tsconfig.json -------------------------------------------------------------------------------- /packages/types/tsconfig.tsbuildinfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/types/tsconfig.tsbuildinfo -------------------------------------------------------------------------------- /packages/typescript-config/base.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/typescript-config/base.json -------------------------------------------------------------------------------- /packages/typescript-config/nextjs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/typescript-config/nextjs.json -------------------------------------------------------------------------------- /packages/typescript-config/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/typescript-config/package.json -------------------------------------------------------------------------------- /packages/typescript-config/react-library.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/typescript-config/react-library.json -------------------------------------------------------------------------------- /packages/ui/eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/ui/eslint.config.mjs -------------------------------------------------------------------------------- /packages/ui/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/ui/package.json -------------------------------------------------------------------------------- /packages/ui/src/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/ui/src/button.tsx -------------------------------------------------------------------------------- /packages/ui/src/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/ui/src/card.tsx -------------------------------------------------------------------------------- /packages/ui/src/code.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/ui/src/code.tsx -------------------------------------------------------------------------------- /packages/ui/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/ui/tsconfig.json -------------------------------------------------------------------------------- /packages/ui/turbo/generators/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/ui/turbo/generators/config.ts -------------------------------------------------------------------------------- /packages/ui/turbo/generators/templates/component.hbs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/packages/ui/turbo/generators/templates/component.hbs -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/pnpm-workspace.yaml -------------------------------------------------------------------------------- /services/archiver/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/archiver/Dockerfile -------------------------------------------------------------------------------- /services/archiver/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/archiver/package.json -------------------------------------------------------------------------------- /services/archiver/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/archiver/src/index.ts -------------------------------------------------------------------------------- /services/archiver/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/archiver/tsconfig.json -------------------------------------------------------------------------------- /services/archiver/tsconfig.tsbuildinfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/archiver/tsconfig.tsbuildinfo -------------------------------------------------------------------------------- /services/engine/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/engine/package.json -------------------------------------------------------------------------------- /services/engine/src/Engine.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/engine/src/Engine.ts -------------------------------------------------------------------------------- /services/engine/src/Orderbook.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/engine/src/Orderbook.ts -------------------------------------------------------------------------------- /services/engine/src/S3Manager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/engine/src/S3Manager.ts -------------------------------------------------------------------------------- /services/engine/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/engine/src/index.ts -------------------------------------------------------------------------------- /services/engine/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/engine/tsconfig.json -------------------------------------------------------------------------------- /services/engine/tsconfig.tsbuildinfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/engine/tsconfig.tsbuildinfo -------------------------------------------------------------------------------- /services/funding-schedular/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/funding-schedular/Dockerfile -------------------------------------------------------------------------------- /services/funding-schedular/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/funding-schedular/package.json -------------------------------------------------------------------------------- /services/funding-schedular/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/funding-schedular/src/index.ts -------------------------------------------------------------------------------- /services/funding-schedular/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/funding-schedular/tsconfig.json -------------------------------------------------------------------------------- /services/funding-schedular/tsconfig.tsbuildinfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/funding-schedular/tsconfig.tsbuildinfo -------------------------------------------------------------------------------- /services/oracle/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/oracle/Dockerfile -------------------------------------------------------------------------------- /services/oracle/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/oracle/package.json -------------------------------------------------------------------------------- /services/oracle/src/fetchBinanceWs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/oracle/src/fetchBinanceWs.ts -------------------------------------------------------------------------------- /services/oracle/src/fetchTopOfBook.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/oracle/src/fetchTopOfBook.ts -------------------------------------------------------------------------------- /services/oracle/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/oracle/src/index.ts -------------------------------------------------------------------------------- /services/oracle/src/marketDataBus.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/oracle/src/marketDataBus.ts -------------------------------------------------------------------------------- /services/oracle/src/publisher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/oracle/src/publisher.ts -------------------------------------------------------------------------------- /services/oracle/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/oracle/tsconfig.json -------------------------------------------------------------------------------- /services/oracle/tsconfig.tsbuildinfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/oracle/tsconfig.tsbuildinfo -------------------------------------------------------------------------------- /services/position-liquidator/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/position-liquidator/Dockerfile -------------------------------------------------------------------------------- /services/position-liquidator/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/position-liquidator/package.json -------------------------------------------------------------------------------- /services/position-liquidator/src/Liquidator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/position-liquidator/src/Liquidator.ts -------------------------------------------------------------------------------- /services/position-liquidator/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/position-liquidator/src/index.ts -------------------------------------------------------------------------------- /services/position-liquidator/src/worker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/position-liquidator/src/worker.ts -------------------------------------------------------------------------------- /services/position-liquidator/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/position-liquidator/tsconfig.json -------------------------------------------------------------------------------- /services/position-liquidator/tsconfig.tsbuildinfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/position-liquidator/tsconfig.tsbuildinfo -------------------------------------------------------------------------------- /services/wss/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/wss/Dockerfile -------------------------------------------------------------------------------- /services/wss/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/wss/package.json -------------------------------------------------------------------------------- /services/wss/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/wss/src/index.ts -------------------------------------------------------------------------------- /services/wss/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/wss/tsconfig.json -------------------------------------------------------------------------------- /services/wss/tsconfig.tsbuildinfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/services/wss/tsconfig.tsbuildinfo -------------------------------------------------------------------------------- /turbo.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gautamtayal1/perpetual-trading/HEAD/turbo.json --------------------------------------------------------------------------------