Logo

Be your own bookmaker.

Use the VaultBet API to become a market maker, build your own decentralised trading bot and earn crypto.

strategy.js
transfer.mo
export default {
strategy: 'aggressive',
odds: {
oracleID: 12,
sports: ['football', 'basketball'],
},
}

Introduction

Getting started

Welcome to VaultBet's API documentation. Our API is currently available for everyone to use for free, with no key required. This documentation provides detailed information about our endpoints to enable the building of automated trading bots on the VaultBet decentralised betting exchange.

Game Controller

Our database that contains information about the current and past events hosted on VaultBet, and information about closed bets.

Orderbooks

Each active event on the platform has an order book canister associated with it. The order book for each event contains information regarding live bets.

Market Maker NFT

Commission-free betting for our platform supporters.

Contact Us

We are here to help you with any issues or inquiries you may have regarding our API calls.

The API is divided into two sections. The first section is the game controller section, this is our database that contains information about the current and past events hosted on our platform and information about closed bets.

The second section is the order book section. Each active event on the platform has an order book cansiter associated with it. The order book for each event contains information regarding live bets. The order books are used to place new bets and cancel existing unmatched bets.


Quick start

For a detailed example on how to use our endpoints, please see our template repositiory: https://github.com/Vault-Bets/api-template

Requirements

You will need to have a few packages available on your machine to be able to get started.

  1. dfx version 0.19.0 or greater https://internetcomputer.org/docs/current/developer-docs/getting-started/hello-world
  2. mops CLI version 0.44.1 or greater and API 1.2 or greater installed https://mops.one/
  3. node we use version 18 or greater
  4. icblast - we use version ^2.0.46 https://github.com/infu/icblast

You will also need the ability to deploy a canister to the internet computer mainnet.

For more information on this, see the Internet Computer resources https://internetcomputer.org/docs/current/home

Odds

You will need to find your own source of information for choosing the odds you wish to set, and the betting strategy you wish to implement.

Getting help

Feel free to reach out to us at info@vault-bet.com with any questions you have and we will endeavour to support in any way we can.

Join the community

Join us on Discord, Telegram, Twitter or Openchat to discuss all things betting, trading and decentralisation.