mj-blockydevs / Mr.Market

Mr. Market is HuFi bot for Mixin

Home Page:https://mr-market-one.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is highly alpha code. Do not use it or you will lose all your money. We'd like to thank Little creatures for being the first company to test Mr. Market and for helping with QA.

Playwright Tests Unit Tests Unit Tests Lint Railway Deployment Status Vercel Deployment Status Deploy with Vercel Vercel deployment

What is Mr.Market

Mr Market is a CeFi crypto bot and the reference exchange oracle for Hu Fi. Mr Market has three main functions

  • An automated crypto bot that supports a variety of strategies for arbitrage across CeFi exchanges.
  • Hu Fi Market Making via the human protocol
  • A front end where users can contribute funds to increase the ability to do Hu Fi market making.

What is Hu Fi

image

The crypto markets are characterized by their fragmented markets, where each cryptocurrency product on every exchange often requires its own market-making. Some products are quoted in USD, USDC, USDT, or even foreign currencies. In essence, each crypto exchange has an isolated order book for each trading pair. In addition, derivative and future products are also disjointed. This differs from traditional markets, which have regulated, centralized market-making where the futures markets are well hedged. In the crypto sector, each product must manage its market-making independently in a one-off manner on each exchange it launches on. Market making is a lucrative industry but it’s currently only available to the largest crypto actors and the average crypto user has no way to participate. Projects create one off agreements between market makers potentially with a subset of the exchanges they trade on. Recently DeFi markets have allowed for some programmatic market making directly from solidity but they represent a tiny fraction of the overall crypto market.

HuFi introduces a decentralized approach to market-making, enabling anyone with tokens and code to programmatically engage in market-making on any centralized exchange using Solidity. The code for market-making can be directly embedded in the crypto product itself, or externally with a sidecar market-making product. Additionally, anyone with exchange keys and the ability to run a bot can now become a market maker safely and transparently. Finally, anyone with excess crypto funds can earn income by providing it to the bot to generate yield on this excess crypto.

HuFi utilizes the Human Protocol to ensure fair compensation for market makers. By leveraging the same smart contract framework and infrastructure already in use for various applications, including machine learning, market makers can trust that they will receive timely and fair payment. This trust is reinforced by the use of the same Escrow Factories, which have a proven track record of reliably disbursing payments to individuals involved in machine learning labeling tasks for years.

The frontend user interface for Mr. Market on Mixin.

Getting Started

Prerequisites

Install dependencies with yarn

npm install

Run development server

npm run dev

If you're using bun:

bun dev

Tests

Install dependencies

npx playwright install-deps
npx playwright install msedge

Running tests

Unit testing

npm run test:unit

E2E testing

npm run test:e2e

Built With


The backend server for Mr.market.

Getting Started

Prerequisites

Install dependencies with yarn

yarn

Run development server

yarn start

Tests

yarn test

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

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

Free Data provided by

"Data provided by CoinGecko",

About

Mr. Market is HuFi bot for Mixin

https://mr-market-one.vercel.app

License:GNU Affero General Public License v3.0


Languages

Language:Svelte 56.7%Language:TypeScript 42.7%Language:JavaScript 0.3%Language:CSS 0.2%Language:HTML 0.0%