Skip to content

A comprehensive polymarket trading application built with a Go backend and a React/TypeScript frontend.

License

Notifications You must be signed in to change notification settings

algorembrant/PolyTra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Awesome Last Commit Go TypeScript JavaScript HTML5 CSS3 React TailwindCSS Vite Docker PostCSS JSON YAML Markdown Git ESLint

Polymarket Trader

A comprehensive trading application built with a Go backend and a React/TypeScript frontend.

Project Structure

This project is organized into a clear separation of concerns between the backend and frontend services.

polymarket-trader
├── .gitignore
├── docker-compose.yml
├── backend
│   ├── .env.example
│   ├── go.mod
│   ├── go.sum
│   ├── server.exe
│   ├── cmd
│   │   └── server
│   │       ├── main.go
│   │       └── main_test.go
│   └── internal
│       ├── adapters
│       │   └── polymarket
│       │       ├── client.go
│       │       └── websocket.go
│       ├── api
│       │   ├── handlers.go
│       │   └── router.go
│       ├── config
│       │   └── config.go
│       ├── core
│       │   ├── analytics.go
│       │   ├── copy_engine.go
│       │   └── trader_discovery.go
│       └── models
│           └── models.go
└── frontend
    ├── .gitignore
    ├── components.json
    ├── eslint.config.js
    ├── index.html
    ├── package-lock.json
    ├── package.json
    ├── postcss.config.js
    ├── tailwind.config.js
    ├── tsconfig.app.json
    ├── tsconfig.json
    ├── tsconfig.node.json
    ├── vite.config.ts
    ├── public
    │   └── vite.svg
    └── src
        ├── App.css
        ├── App.test.tsx
        ├── App.tsx
        ├── index.css
        ├── main.tsx
        ├── assets
        │   └── react.svg
        ├── components
        │   ├── ActivePositions.tsx
        │   ├── BotChat.tsx
        │   ├── CopyConfigDialog.tsx
        │   └── ui
        │       ├── avatar.tsx
        │       ├── badge.tsx
        │       ├── button.tsx
        │       ├── card.tsx
        │       ├── dialog.tsx
        │       ├── input.tsx
        │       ├── label.tsx
        │       ├── scroll-area.tsx
        │       ├── table.tsx
        │       └── tabs.tsx
        ├── lib
        │   └── utils.ts
        └── test
            └── setup.ts

Backend (/backend)

The backend is built with Go and follows a standard clean architecture layout:

  • cmd/: Contains the main entry points for the application.
  • internal/: Private application code.
  • adapters/: implementations of interfaces for external services (e.g., Polymarket).
  • api/: HTTP handlers and router configuration.
  • core/: Business logic and domain services.

Frontend (/frontend)

The frontend is a React application powered by Vite and TypeScript:

  • src/: Source code for the frontend application.
  • components/: Reusable UI components.
  • lib/: Helper functions and utilities.

About

A comprehensive polymarket trading application built with a Go backend and a React/TypeScript frontend.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published