Skip to content

declansx/sx-bet-basics

Repository files navigation

SX Bet API Basics

A collection of standalone javascript modules for SX Bet API calls. This project demonstrates how to fetch data and interact with various API endpoints.

Modules

  • fetchMetadata.js: Script for fetching the exchange metadata
  • fetchSports.js: Script for fetching available sports, leagues, fixtures and markets
  • fetch-orders: Scripts for fetching order data
  • fetch-trades: Scripts for retrieving trade information
  • post-order: Functionality for posting and cancelling orders
  • websocket: Implementation of WebSocket connection for real-time updates
  • fill-orders: Scripts for filling orders

Setup

  1. Clone the repository:
git clone https://github.com/declansx/sx-bet-basics.git
  1. Install dependencies:
npm install
  1. Configure environment variables: Create .env files in the respective directories with the required credentials.

Usage

Navigate to the specific module directory and run:

node index.js

Author

Declan_SX

About

Basic sample modules for API calls on SX Bet API as part of the tutorials on getting started with building programmatic betting bots on SX Bet.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors