refactor marketMaking test script
This commit is contained in:
parent
3e23d5977f
commit
e48ab5dbae
|
@ -5,6 +5,7 @@ import { Dex, FileKeypair } from "../src";
|
||||||
process.on("beforeExit", () => console.log("Parent process exiting..."));
|
process.on("beforeExit", () => console.log("Parent process exiting..."));
|
||||||
|
|
||||||
const main = async () => {
|
const main = async () => {
|
||||||
|
console.log("Process: ", process.pid);
|
||||||
const connection = new Connection("http://localhost:8899", "confirmed");
|
const connection = new Connection("http://localhost:8899", "confirmed");
|
||||||
|
|
||||||
const owner = FileKeypair.generate("./scripts/keys/owner.json");
|
const owner = FileKeypair.generate("./scripts/keys/owner.json");
|
||||||
|
@ -53,8 +54,7 @@ const main = async () => {
|
||||||
console.log(`Funded owner with ${baseCoin.symbol} and ${quoteCoin.symbol}`);
|
console.log(`Funded owner with ${baseCoin.symbol} and ${quoteCoin.symbol}`);
|
||||||
|
|
||||||
dex.runMarketMaker(market, owner, {
|
dex.runMarketMaker(market, owner, {
|
||||||
unref: true,
|
durationInSecs: 15,
|
||||||
durationInSecs: 30,
|
|
||||||
orderCount: 3,
|
orderCount: 3,
|
||||||
initialBidSize: 1000,
|
initialBidSize: 1000,
|
||||||
baseGeckoSymbol: "solana",
|
baseGeckoSymbol: "solana",
|
||||||
|
|
Loading…
Reference in New Issue