Skip to content

qznc/prema

Repository files navigation

Travis-CI Status

Prema Prediction Market

A prediction market web app. Make predictions and trade on them with play money. So far only provides binary markets.

screenshot

Prediction markets are also known as predictive markets, information markets, decision markets, idea futures, event derivatives, or virtual markets.

Setup

SQLite is included, so you only need a D compiler and the dub packaging tool.

  1. Compile and run prema via dub.
  2. Browse to http://127.0.0.1:8080.

Uses Github for authentication. This requires you to register an Application on Github an provide id and secret via environment variables GH_BASIC_CLIENT_ID and GH_BASIC_CLIENT_SECRET.

Desirable Features

  • Multi-outcome markets
  • Conditional and combinatorial markets
  • Multiple languages (e.g. german)
  • Limit and stop orders
  • Shibboleth authentication
  • REST API
  • Real-time UI via Javascript magic

Legalese

Unless otherwise marked (e.g. sqlite3), all code is provided under the Apache Licence v2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.