Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions resources/plugins/Gold.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"id": "gold_price",
"meta": {
"name": "黄金价格",
"version": "1.0",
"author": "JimmyK1m",
"description": "伦敦现货黄金价格监控"
},
"execution": {
"type": "api_json",
"url": "https://api.gold-api.com/price/XAU",
"method": "GET",
"extract": {
"price": "price"
},
"process": [{
"var": "price_modified",
"source": "price",
"function": "regex_replace",
"pattern": "(\\d+\\.\\d).*",
"to": "$1"
}]
},
"outputs": [{
"key": "XAU",
"label": "伦敦黄金",
"format_val": "{{price_modified}}"
}]
}