forked from smartcontractkit/external-adapters-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfixtures.ts
48 lines (46 loc) · 959 Bytes
/
fixtures.ts
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
43
44
45
46
47
48
export const mockLoginResponse = {
request: {
request: 'login',
username: 'user',
password: 'pass',
},
response: {
Type: 'Info',
Message: 'Logged in as user: user',
},
}
export const mockSubscribeResponse = {
request: {
request: 'subscribe',
ccy: 'ETH/USD',
},
response: [
{
Type: 'Info',
Message: 'Subcribed to currency pair(s) ETH/USD',
},
[
{
timestamp: '2022-01-20T01:17:11',
currencyPair: 'ETH/USD',
bid: 3106.8495,
offer: 3107.1275,
mid: 3106.9885,
changes: [
{ period: '1h', change: -4.0416731, percentage: -0.12 },
{ period: '1d', change: -54.625719, percentage: -1.72 },
],
},
],
],
}
export const mockUnsubscribeResponse = {
request: {
request: 'unsubscribe',
ccy: 'ETH/USD',
},
response: {
Type: 'Info',
Message: 'Unsubscribed to currency pair(s) ETH/USD',
},
}