Installation Setup
Overview of supported trading markets and installation prerequisites for using the API.
Last updated
Overview of supported trading markets and installation prerequisites for using the API.
Last updated
This API provides information for the following trading markets:
Asset
Market ID
Description
APT/USDC
396
Aptos-based trading market.
BTC/USDC
397
Bitcoin-based trading market.
ETH/USDC
398
Ethereum-based trading market.
Before using the API, ensure you have the following:
Node.js: Install version 16 or higher. .
npm: Verify npm is installed to manage packages.
Run these commands to install the required dependencies:
Install dotenv
and axios
:
Install the Aptos SDK for TypeScript:
Create a file, e.g., setup.ts
, and use the following code:
APT Market
base_decimals
: 8
lot_size_multiplier
: 100000
BTC Market
base_decimals
: 8
lot_size_multiplier
: 1000
ETH Market
base_decimals
: 8
lot_size_multiplier
: 10000
APT Market
price_precision
: 3
BTC Market
price_precision
: 0
ETH Market
price_precision
: 1