{"id":23527168,"url":"https://github.com/mit-dci/opencx","last_synced_at":"2025-04-09T16:10:17.360Z","repository":{"id":38629421,"uuid":"167024383","full_name":"mit-dci/opencx","owner":"mit-dci","description":"An open-source cryptocurrency exchange toolkit for implementing experimental exchange features","archived":false,"fork":false,"pushed_at":"2023-03-07T02:04:13.000Z","size":32008,"stargazers_count":208,"open_issues_count":21,"forks_count":68,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-04-09T16:09:56.332Z","etag":null,"topics":["bitcoin","crypto","crypto-exchange","cryptocurrency","cryptocurrency-exchanges","exchange","lightning","puzzle","timelock"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mit-dci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-22T16:09:54.000Z","updated_at":"2025-04-03T13:23:05.000Z","dependencies_parsed_at":"2024-06-18T18:43:08.946Z","dependency_job_id":"78fc6ccb-8cc5-4203-b8cd-a118c8be7c32","html_url":"https://github.com/mit-dci/opencx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mit-dci%2Fopencx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mit-dci%2Fopencx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mit-dci%2Fopencx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mit-dci%2Fopencx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mit-dci","download_url":"https://codeload.github.com/mit-dci/opencx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065283,"owners_count":21041871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitcoin","crypto","crypto-exchange","cryptocurrency","cryptocurrency-exchanges","exchange","lightning","puzzle","timelock"],"created_at":"2024-12-25T20:12:31.445Z","updated_at":"2025-04-09T16:10:17.341Z","avatar_url":"https://github.com/mit-dci.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# opencx\n\n[![Build Status](https://travis-ci.org/mit-dci/opencx.svg?branch=master)](https://travis-ci.org/mit-dci/opencx)\n[![License](http://img.shields.io/badge/License-MIT-brightgreen.svg)](./LICENSE)\n[![GoDoc](https://godoc.org/github.com/mit-dci/opencx?status.svg)](https://godoc.org/github.com/mit-dci/opencx)\n\u003c!-- [![Go Report Card](https://goreportcard.com/badge/github.com/mit-dci/opencx)](https://goreportcard.com/report/github.com/mit-dci/opencx) --\u003e\n\nCryptocurrency exchanges are some of the largest businesses in the cryptocurrency space, and their reserves are often viewed as \"honeypots\" of cryptocurrencies.\nBecause of this, cryptocurrency exchanges have been a hotbed of crime in the form of hacks, front-running, wash trading, fake orderbooks, and much more.\nIn order for cryptocurrency to be successful, we need safe, trustworthy ways to exchange cryptocurrencies, without fear that coins will be stolen, or trades executed unfairly.\nAdditionally, the vast majority of exchange software is closed-source, and exchanges have historically not implemented technological upgrades that would substantially decrease risk for users.\n\nOpenCX hopes to solve this problem by making it trivially easy to run a secure, scalable cryptocurrency exchange which implements many of these features, including:\n\n- Layer two compatibility\n- Non-custodial exchange\n- Anti front-running\n- Public orderbook auditability\n- *More to come...*\n\nAdditionally, all of the components of OpenCX are designed to be swappable, secure, and scalable.\nThe goal is to fit those requirements and implement features similar to that of modern cryptocurrency exchanges, while keeping high quality software.\n\n**DO NOT use in a production environment, this project is a work in progress!**\n\n*Pull requests and issues encouraged!*\n\n## Demo\n\n![gif of program in normal use](../assets/opencxdemo.gif?raw=true)\n\n## Contributing\n\nPlease see the\n[contributing](./CONTRIBUTING.md)\nfile to get started with contributing!\n\n# Setup\n\n## Requirements\n\n- Go 1.12+\n- A MySQL Database (not needed for client)\n- GMP (GNU Multiple Precision Arithmetic Library)\n\n## Installing\n\n### Installing GMP\n\n#### Debian\n\n```sh\nsudo apt-get install libgmp3-dev\n```\n\n#### macOS\n\n```sh\nbrew install gmp\n```\n\n### Clone repo and install dependencies\n\n```sh\ngit clone git@github.com/mit-dci/opencx.git\ncd opencx\ngo get -v ./...\n```\n\n## Running opencx server / exchange\n\nYou will need to run MariaDB or any other MySQL database in-order to run the server. You can configure authentication details for your database at `~/.opencx/db/sqldb.conf`\n\n### Start your database (MariaDB in this case)\n\n#### Linux\n\n```sh\nsudo systemctl start mariadb\n```\n\n#### macOS\n\n```sh\nmysql.server start\n```\n\n### Now build and run opencx\n\n```sh\ngo build ./cmd/opencxd/...\n./opencxd\n```\n\n## Running opencx CLI client\n\n```sh\ngo build ./cmd/ocx/...\n./ocx\n```\n\nYou can now issue any of the commands in the cxrpc README.md file.\n\n## Configuration\n\nThere are configuration options (both command line and .conf) for the client and the server, and by default home folders for these files will be created at `~/.opencx/opencxd/` and `~/.opencx/ocx/` respectively. You can decide whether or not to use the\n[NOISE protocol](http://www.noiseprotocol.org/)\nfor authentication, which hostnames and ports to use for connecting to certain clients, which coins you would like to support, and whether or not to support lightning.\n\nIf you'd like to add your own coins, just add a coinparam struct like in `lit`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmit-dci%2Fopencx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmit-dci%2Fopencx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmit-dci%2Fopencx/lists"}