A collection of standalone javascript modules for SX Bet API calls. This project demonstrates how to fetch data and interact with various API endpoints.
- 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
- Clone the repository:
git clone https://github.com/declansx/sx-bet-basics.git
- Install dependencies:
npm install
- Configure environment variables:
Create
.envfiles in the respective directories with the required credentials.
Navigate to the specific module directory and run:
node index.js
Declan_SX