Strategy vault / Tools & templates
KuCoin Fund Transfer Plugin
JavaScript strategy by makebit.
JavaScriptTools & templates
The original spec has no written description. Read the source below.
Parameters
| Name | Default | What it controls |
|---|---|---|
| assets | USDT | Transfer Currency |
| amount | 10000 | Transfer Quantity |
| typeIndex | 0 | Transfer Type: Transfer from Spot Account to USDT Contract Account | Transfer from USDT Contract Account to Spot Account |
Source JavaScript
var adress = ['/api/v1/transfer-in','/api/v3/transfer-out'][typeIndex]
function UsdtTransfer( e , cur , amount ){
var params = ''
var Currency = cur
var Transfer Quantity = amount
var exname = e.GetName()
if( exname == 'Futures_KuCoin'){
if( typeIndex == 0 ){
paraStr = '&payAccountType=TRADE'
}else if( typeIndex == 1 ){
paraStr = '&recAccountType=TRADE'
}
params = "amount="+amount+"¤cy="+Currency + paraStr
ret = e.IO("api","POST",adress, params )
Log( Currency , "Transfer Quantity:" , amount , ret)
}
}
function main() {
UsdtTransfer( exchange , assets , amount )
}Published by makebit on the FMZ strategy square · last modified 2023-09-28. 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 tested, production-ready module from strategies/KuCoin-Fund-Transfer-Plugin.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.
Related specs
- Binance Account Cross Transfer Small ToolJavaScript · Tools & templates
- Get cryptocurrency current and max supplyJavaScript · Tools & templates
- Interaction TemplateJavaScript · Tools & templates
- Moving Average Bot 30 linesJavaScript · Tools & templates · 1d
- OKEx V5 Candlestick Data Paginated Query ExampleJavaScript · Tools & templates
- Single Currency Dynamic Equilibrium V10 District LeaderJavaScript · Tools & templates · 1d