Commit Graph

167 Commits

Author SHA1 Message Date
TrooperCrypto
cb15e8f4a3 goodWalletIds not const 2022-03-10 22:01:35 +01:00
TrooperCrypto
22606ea717 remove Initiate fill loop 2022-03-10 22:01:26 +01:00
TrooperCrypto
e8faf8711f rename
goodWallets -> goodWalletIds
wallet -> walletId
2022-03-09 16:39:48 +01:00
TrooperCrypto
e36e1f86a8 switch to filter 2022-03-01 11:38:15 +01:00
TrooperCrypto
4431b40fc2 1000ms feels good 2022-03-01 11:33:27 +01:00
TrooperCrypto
5f8065ae97 only set flag to false for that wallet
- fillrequest returns accountId
2022-03-01 01:06:57 +01:00
TrooperCrypto
7ffda56b3e add broadcasting check to fillable
- Send request directly after isOrderFillable -> check if ready
- only return one wallet
2022-03-01 00:46:04 +01:00
TrooperCrypto
dfbd466d13 fillOpenOrders more often
fillOpenOrders every 400ms to match 500ms in backend
2022-03-01 00:44:26 +01:00
TrooperCrypto
6d22e65d13 directly sendFillRequest
remove FILL_QUEUE
2022-03-01 00:33:22 +01:00
TrooperCrypto
1da3e31e29 use side here 2022-03-01 00:29:28 +01:00
TrooperCrypto
ab0e496004 small bugfix 2022-02-23 13:54:41 +01:00
Trooper
66d7ec334e Merge pull request #28 from ZigZagExchange/dev
Dev
2022-02-23 13:27:26 +01:00
TrooperCrypto
d947c31783 fix log 2022-02-22 20:59:05 +01:00
TrooperCrypto
73a9aaa57d update backend on nonce error
send orderstatusupdate with 'r' and error about the failed nonce check. This prevents the backend from setting an timeout for the mm.
2022-02-21 19:48:25 +01:00
TrooperCrypto
e6b880a81e fixes 2022-02-20 22:22:22 +01:00
TrooperCrypto
7797373ff8 remove getMidPrice
Switch to use PRICE_FEEDS for constant mode as well. Can be set in the old way or "priceFeedPrimary": "constant:1" in pair config.
2022-02-20 17:12:44 +01:00
TrooperCrypto
a7f8b085e3 enable constant mode in priceFeed
can be also used as secondaryPriceFeed
2022-02-20 17:03:29 +01:00
TrooperCrypto
fe7228d601 use mmConfig 2022-02-20 16:25:33 +01:00
TrooperCrypto
e1146b0004 spacing setupPriceFeeds 2022-02-20 16:15:45 +01:00
TrooperCrypto
c11b456af9 Update account state after fill
also only fetch the state zkSync every 15 min
2022-02-20 16:11:24 +01:00
TrooperCrypto
8bdb4052d8 rememberOrder more swap infos
- save Token symbol
- save quantity
2022-02-20 15:40:26 +01:00
TrooperCrypto
e224ebdaba make change in 2 way possible
SpreadAfterFill & SizeAfterFill can reduce and increase the size/spread
2022-02-20 15:09:31 +01:00
TrooperCrypto
cff2224d3d add increaseSizeAfterFill 2022-02-20 15:04:51 +01:00
vixidev99
f73ff181f5 quick bug fix 2022-02-18 15:38:43 +05:30
TrooperCrypto
81e017e052 increaseSpreadAfterFill pair option 2022-02-16 21:41:42 +01:00
TrooperCrypto
633bd879e8 indicateLiquidity for specific pair 2022-02-16 21:35:43 +01:00
TrooperCrypto
d1f78b4751 move fillOrderDelay in afterFill function 2022-02-16 21:29:57 +01:00
TrooperCrypto
e6bd9b01c1 Move ABI in file 2022-02-16 20:56:55 +01:00
TrooperCrypto
ce12226325 send fill request first
rememberOrder might add a small delay
2022-02-16 15:18:23 +01:00
Trooper
bd88bdd25d Update main version to latest dev version
This merge includes:
- Improve stability of ws: https://github.com/ZigZagExchange/market-maker/pull/15
- Delay after fill: https://github.com/ZigZagExchange/market-maker/pull/16
- move chainlink ABI in file: https://github.com/ZigZagExchange/market-maker/pull/17
- cleanup of naming & spacing: https://github.com/ZigZagExchange/market-maker/pull/18
2022-02-16 14:38:56 +01:00
vixidev99
80f93dc029 dont allow bad liquidity sends to crash the MM 2022-02-13 11:04:34 +05:30
TrooperCrypto
1a842292c4 fix/cryptowatch restart
need to give parameter to cryptowatchWsSetup
2022-02-12 00:51:24 +01:00
TrooperCrypto
95e789163c fix/ add marekt_id in log
This should log the maket_id. Otherwise its pointless
2022-02-10 22:11:21 +01:00
TrooperCrypto
6220c8d136 Update marketmaker.js 2022-02-09 20:44:27 +01:00
TrooperCrypto
df16f5665a Update marketmaker.js 2022-02-09 19:53:56 +01:00
TrooperCrypto
2a4a879e0a Bug fixes
- await first prices
- move setupPriceFeeds after ethersProvider
- move chainlinkProviders to globals
- log prices once after first fetch
2022-02-09 19:53:40 +01:00
TrooperCrypto
c0e958f4a5 up interval to 10s 2022-02-09 19:22:59 +01:00
Trooper
a243bfcd07 rm line 2022-02-09 18:18:24 +01:00
TrooperCrypto
439248f5e4 make infuraUrl available 2022-02-09 17:55:20 +01:00
TrooperCrypto
e55bd23418 Update marketmaker.js 2022-02-09 17:48:23 +01:00
TrooperCrypto
bc600d6c8a rename 2022-02-09 17:23:31 +01:00
TrooperCrypto
62f0fc7605 make setupPriceFeed modular for n providers 2022-02-09 16:22:55 +01:00
vixidev99
76c9bedca3 Merge branch 'master' of zigzag:ZigZagExchange/market-maker 2022-02-07 18:41:07 +05:30
vixidev99
972b29adf4 remove markets query since it's no longer needed. catch cryptowatch failure errors 2022-02-07 18:40:56 +05:30
TrooperCrypto
170847a227 Fix as account_state is string 2022-02-06 13:52:34 +01:00
vixidev99
7a75750ecb show greatest wallet balance in liquidity 2022-02-06 11:24:29 +05:30
vixidev99
a15e4f56f7 parse JSON keys from env 2022-02-06 11:05:44 +05:30
vixidev99
f3bfff47a0 quick fix to merged code 2022-02-06 10:29:06 +05:30
taureau75
48b3f38cf4 Merge branch 'master' into feat/update-market-info-over-ws 2022-02-05 20:48:29 -08:00
TrooperCrypto
d7f2877309 Switch MARKETS over to ws
Remove old fetch for markets. Use "marketinfo" op code to setup market info. Can be used to update infos.
2022-02-03 12:58:23 +01:00