forked from dutu/bisq-watcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tradingRules.mjs
42 lines (38 loc) · 1.22 KB
/
tradingRules.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* This file exports an array of trading-related rule objects.
*
* @see {@link ./rules.mjs} for the definition of Rule.
* @type {Rule[]}
*/
import { tradingRules as tradingRules_sellerAsMaker } from './tradingRules_sellerAsMaker.mjs'
import { tradingRules as tradingRules_sellerAsTaker } from './tradingRules_sellerAsTaker.mjs'
import { tradingRules as tradingRules_buyerAsMaker } from './tradingRules_buyerAsMaker.mjs'
import { tradingRules as tradingRules_buyerAsTaker } from './tradingRules_buyerAsTaker.mjs'
const tradingRules_common = [
{
eventName: 'myOfferTaken',
logger: 'b.c.n.a.MyOfferTakenEvents',
pattern: 'MyOfferTakenEvents: We got a offer removed. id={0}-',
message: `({0}) Your offer with ID {0} was taken`,
level: 'notice',
sendToTelegram: true,
isActive: true,
},
/*
{
eventName: 'TradeEvents: We got a new trade',
logger: 'b.c.n.a.TradeEvents',
pattern: 'We got a new trade. id={0}-',
message: `({0}) New trade with ID {0}`,
sendToTelegram: true
},
*/
]
const tradingRules = [
...tradingRules_common,
...tradingRules_sellerAsMaker,
...tradingRules_sellerAsTaker,
...tradingRules_buyerAsMaker,
...tradingRules_buyerAsTaker
]
export default tradingRules