Skip to content

Commit

Permalink
docs(bruno): add webhook event samples for asset and peer liquidity high
Browse files Browse the repository at this point in the history
  • Loading branch information
golobitch committed Nov 7, 2024
1 parent c061abc commit f3d5353
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
meta {
name: Asset Liquidity High
type: http
seq: 9
}

post {
url: {{cloudNineWalletWebhookUrl}}
body: json
auth: none
}

body:json {
{
"id": "{{uuid}}",
"type": "asset.liquidity_low",
"data": {
"id": "{{assetId}}",
"asset": {
"id": "{{assetId}}",
"code": "EUR",
"scale": 2
},
"liquidityThresholdHigh": "9950",
"balance": "9980"
}
}
}

script:pre-request {
bru.setVar('uuid', require("uuid").v4());
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
meta {
name: Peer Liquidity High
type: http
seq: 11
}

post {
url: {{cloudNineWalletWebhookUrl}}
body: json
auth: none
}

body:json {
{
"id": "{{uuid}}",
"type": "peer.liquidity_low",
"data": {
"id": "{{peerId}}",
"asset": {
"id": "{{assetId}}",
"code": "USD",
"scale": 2
},
"liquidityThresholdHigh": "9800",
"balance": "9850"
}
}
}

script:pre-request {
bru.setVar('uuid', require("uuid").v4());
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Peer Liquidity Low
type: http
seq: 9
seq: 10
}

post {
Expand All @@ -21,8 +21,7 @@ body:json {
"code": "USD",
"scale": 2
},
"liquidityThresholdLow": "10000",
"liquidityThresholdHigh": "1000000",
"liquidityThreshold": "10000",
"balance": "9850"
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Wallet Address Web Monetization
type: http
seq: 10
seq: 12
}

post {
Expand Down

0 comments on commit f3d5353

Please sign in to comment.