Simple maker demo
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Initial commit Apr 27, 2018
.gitignore Initial commit Apr 27, 2018
README.md Initial commit Apr 27, 2018
package-lock.json Update to sdk npm version 1.0.1 May 8, 2018
package.json Update to sdk npm version 1.0.1 May 8, 2018
tsconfig.json Initial commit Apr 27, 2018

README.md

Simple Maker Demo

This demo is a simple "maker" that utilizes the Hydro API to automatically place orders. It uses a naive strategy of placing bid orders whenever the price increases, and placing ask orders whenever the price decreases. It will check the price manually based on the interval passed in, and if the price has changed it will delete the previous order and create a new order based on the strategy.

Running this demo with a real private key will actually place the orders in the production market. Please review the code and make sure that is your intention, or it could lead to unexpected losses.

To run the maker, use the following command:

ts-node src/index.ts [marketId] [privateKey] [interval/ms] [amount]