faniss писал(а):
компонент hmac есть у NetspiritУ меня его нет.
Добавил цвет в таблицу сделок по BTCUSDT,
Зелёный – цена возросла
Красный-снизилась
Без цвета-цена сделки осталось прежней.
Добавление новой сделки сверху. Ограничение – 20 строк.
Add(MainForm,2953706,35,126)
{
Width=746
Height=377
Caption="trade.BTCUSDT"
Point(onClose)
link(onCreate,133730:doConsoleExec,[])
link(onClose,133730:doConsoleTerminate,[])
}
Add(WinExec,133730,98,126)
{
FileName="websocat_win32.exe"
Param="wss://stream-testnet.bybit.com/realtime_public"
Mode=0
Point(doConsoleExec)
Point(doConsoleTerminate)
Point(onConsoleResult)
Point(onConsoleTerminate)
Point(doConsoleInput)
link(onExec,3814215:doString,[(137,132)(137,118)(25,118)(25,174)])
link(onConsoleResult,5437590:doReplace,[])
}
Add(FormatStr,3814215,35,168)
{
Mask="{"op": "subscribe", "args": ["trade.BTCUSDT"]}\r\n"
link(onFString,133730:doConsoleInput,[(81,174)(81,160)])
}
Add(Replace,5437590,147,140)
{
SubStr="""
link(onReplace,13454937:doSearch,[])
}
Add(BlockFind,13454937,203,140)
{
IncludeBlock=1
StartBlock="data:[{"
EndBlock="}]"
link(onSearch,5553854:doEvent1,[])
}
Add(MST_RowAction,9222960,609,189)
{
Action=1
MSTControl="asd"
}
Add(MT_String,4815368,392,189)
{
Delimeter=","
link(onResult,4200384:doEvent1,[])
}
Add(EventFromData,5169557,609,84)
{
link(onEvent,12470464:doSplit,[(648,90)(648,76)(550,76)(550,90)])
}
Add(StrPart,12470464,560,84)
{
Char=":"
Point(Right)
link(onSplit,5169557:doData,[])
}
Add(MTStrTbl,13766072,609,133)
{
Width=730
Height=338
Align=5
Name="asd"
Columns=#6:symbol|14:tick_direction|5:price|4:size|9:timestamp|13:trade_time_ms|4:side|8:trade_id|14:is_block_trade|
NColorRow=10
ColorItems=0
link(CodePageSet,5169557:GetData,[])
}
Add(MT_Add,8403136,511,189)
{
Data=Integer(0)
link(onAdd,11354825:doAdd,[])
link(Data,6339735:String,[])
}
Add(Hub,4200384,455,189)
{
link(onEvent1,8403136:doAdd,[])
link(onEvent2,7120748:doAdd,[(501,202)(501,244)])
}
Add(MST_RowAction,228164,560,238)
{
Action=3
MSTControl="asd"
}
Add(MT_Add,7120748,511,238)
{
Data=Integer(20)
InputMT=1
link(onAdd,228164:doRowAction,[])
}
Add(SampleDelta,10052423,392,140)
{
link(onCalcDelta,8119398:doCalc,[])
}
Add(Convertor,9469241,343,140)
{
Mode=10
link(onResult,10052423:doCalcDelta,[])
}
Add(MT_Add,11354825,560,189)
{
Data=Integer(0)
InputMT=1
link(onAdd,9222960:doRowAction,[])
}
Add(MathParse,8119398,441,140)
{
DataCount=1
MathStr="sign(%1) + 1"
ResultType=0
link(onResult,6339735:doGetString,[])
}
Add(StrList,6339735,490,112)
{
Strings=#5:65767|1:0|6:456545|0:|
Point(doGetString)
Point(onGetString)
Point(String)
}
Add(Hub,5553854,259,140)
{
link(onEvent1,10695505:doSearch,[])
link(onEvent2,4815368:doMT,[(284,153)(284,202)])
}
Add(BlockFind,10695505,294,140)
{
IncludeBlock=1
StartBlock="price:"
EndBlock=","
link(onSearch,9469241:doConvert,[])
}