DingTalk Push
- $.ddNotice(title, content) title: String type, the title of the push notification content: Array type, markdown format
- $.ddNotice(title, content)
title: String type, the title of the push notification content: Array type, markdown format
Parameters
| Name | Default | What it controls |
|---|---|---|
| DING_URI | DingTalk URI | DingTalkURI |
Source JavaScript
$.ddNotice = function(title, content) {
content = content == null ? title : content instanceof Array ? content.join('\n') : content
HttpQuery(DING_URI, {
method: 'POST',
timeout: 3000,
data: JSON.stringify({
msgtype: 'markdown',
markdown: {
title: title,
text: content
}
})
}, null, 'Content-Type: application/json')
}Published by 一拳男孩 on the FMZ strategy square · last modified 2019-08-13. Collected in the Quant Trading Vault. Unvalidated research: re-test with your own data and costs before trusting it.
Build this with AgenKit
A spec is not a trading system. Paste this into your coding agent and AgenKit runs a specialist team — architecture, test-first build, risk gates, review — with paper trading on by default.
/agenkit build a production-grade trading bot with a backtest engine, risk controls and paper trading by default from strategies/DingTalk-Push.md- npx agenkit install engineering-kit in your project
- Paste the command into your agent and approve each phase
- Get tests, backtest, risk controls and a paper-trading switch
Understand it first
Before you run this, read the lesson behind the idea and how to backtest it honestly. Specs like this one are the survivors of an unknown number of trials; deflate their results accordingly.