It's a playground for atomex-sdk
-
Install dependencies
npm install
-
Build the app
npm run build
-
Specify user credentials for the predefined users.
cp .env.template .env
Fill the
.env
file with your test user credentials -
Ready to run
-
Start the playground
npm start
-
Interact with the playground using its commands via terminal. Execute the help (
h
orhelp
) command to display available commands.Launching... cmd > help Available commands: * h, help Help * exit Exiting the program * getOrderBook Get order book and print it. Arguments: symbol * getOrders Get user orders. Arguments: userId, blockchainName (tez | eth) * getOrder Get a user order. Arguments: userId, blockchainName (tez | eth), orderId * createOrder Create order. Arguments: userId, blockchainName (tez | eth), symbol, price, qty, side (Buy, Sell), orderType (Return | FillOrKill | SolidFillOrKill | ImmediateOrCancel) * cancelOrder Cancel a user order. Arguments: userId, blockchainName (tez | eth), orderId * printUsers Print a list of the current users * printAtomexClients Print a list of the atomex clients * auth, authenticate Authenticate a user. Arguments: userId, blockchainName (tez | eth)