Skip to content

piotrswierzy/Mr.Market-V2-demo

 
 

Repository files navigation

This is still in development and not ready for use. If you would like to test out Mr.Market, you can try the alpha V1 version available here.

Introduction

What is Mr.Market?

Mr.Market is a Trading bot and the reference exchange oracle for Hu-Fi. Mr.Market has three main functions:

  • An automated CeFi, DeFi, TradFi bot that supports a variety of strategies for arbitrage.
  • A front end where users can transact using crypto, and tradfi accounts .

Learn more about Hu-Fi.

Mr.Market V1

You can find the V1 alpha version here.

What is Mr.Market V2?

Mr.Market V2 is the improved version of Mr.Market V1. While V1 was built with a time-to-market priority in mind, V2 features a new architecture designed to be more robust and scalable.

You can find the V2 high-level architecture overview here.

Documentation

Below are links to the documentation files located in the architecture/docs folder:

Vercel Deploy Button

Project Deploy
tse-backend Deploy with Vercel
mm-backend Deploy with Vercel
  1. Start the deployment
  • First, you should run the tse-backend, just click the deploy button (not need to provide any environment variables).
  • Second you should run the mm-backend.
  1. Add storage
  • In the Add Storage section, select the Postgres Database option available to you. The Vercel integration will create and provision a Postgres database, and you should manually connect it to your new projects.
  • Do the same for Redis.

Required Environment Variables for mm-backend

Variable Description
TRADING_STRATEGY_EXECUTION_API The API endpoint for executing trading strategies.
ADMIN_PASSWORD Admin password for accessing restricted endpoints.
MIXIN_APP_ID The Mixin application ID.
MIXIN_SESSION_ID The session ID for the Mixin integration.
MIXIN_SERVER_PUBLIC_KEY Public key for the Mixin server.
MIXIN_SESSION_PRIVATE_KEY Private key for the Mixin session.
MIXIN_SPEND_PRIVATE_KEY Private key for Mixin spend operations.
MIXIN_OAUTH_SECRET OAuth secret for the Mixin integration.

How to Connect Vercel Logs to Better Stack

Follow these steps to integrate Vercel logs with Better Stack for improved log management and monitoring:

  1. Create an Account on Better Stack
    If you don’t already have an account, go to Better Stack and sign up. Follow the prompts to set up your workspace.

  2. Log in to Your Vercel Dashboard
    Navigate to Vercel and log in to your account.

  3. Select Your Application
    From the Vercel dashboard, choose the project for which you want to set up the log integration.

  4. Access the Integrations Tab

    • In your application's settings, locate and click the Integrations tab.
    • This tab lists all available integrations for your project.
  5. Find and Select the Better Stack Integration

    • Search for Better Stack in the integrations list.
    • Click on the Better Stack integration to begin the setup process.
  6. Connect Vercel to Better Stack

    • Follow the instructions provided during the setup to connect your Vercel project to Better Stack.

License

This project is licensed under the GNU Affero General Public License - see the LICENSE.md file for details

About

This is the V2 version of Mr.Market

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.5%
  • Other 0.5%