Вверх ↑
Ответов: 127
Рейтинг: 0
#1: 2022-10-06 23:56:37 ЛС | профиль | цитата
а так можно подключиться к приватным топикам, чтобы отслеживать баланс и т.п.


Add(WinExec,133730,343,329)
{
FileName="websocat_win32.exe"
Point(doConsoleExec)
Point(doConsoleTerminate)
Point(onConsoleResult)
Point(onConsoleTerminate)
Point(doConsoleInput)
link(onExec,3814215:doString,[])
link(Params,15578961:Text,[(356,271)(132,271)])
link(onConsoleResult,1860636:doEvent1,[])
}
Add(VisualStrings,15578961,126,196)
{
Lines=#40:wss://stream.bybit.com/realtime_private |
Width=333
}
Add(FormatStr,3814215,427,329)
{
DataCount=3
Mask="{"op": "auth", "args": ["%1", "%2", "%3"]}\r\n"
link(onFString,8092827:doWork3,[(471,335)(471,386)(333,386)])
link(Str1,5601986:getVar,[(433,295)(410,295)])
link(Str2,6173171:Var1,[(440,152)])
link(Str3,379787:Result,[(447,293)(622,293)])
}
Add(LineBreakEx,5601986,404,253)
{
Caption="api"
Type=2
}
Add(Hub,15944706,147,287)
{
OutCount=9
link(onEvent1,9626517:doTimeDate,[(283,293)(283,115)])
link(onEvent2,3598329:doString,[(364,300)(364,188)])
link(onEvent3,379787:doCalcHMAC,[(389,307)(389,230)])
link(onEvent9,133730:doConsoleExec,[])
}
Add(MultiElementEx,9626517,560,109)
{
}
BEGIN_SDK
Add(EditMultiEx,4026317,21,21)
{
WorkCount=#10:doTimeDate|
VarCount=#5:Value|
Width=811
Height=662
link(doTimeDate,8612214:doData,[(95,27)(95,209)])
link(Value,16439439:Value,[(27,459)(573,459)])
}
Add(Time,8832102,168,147)
{
Format="D:M:Y h:m:s"
Point(DateTime)
}
Add(DoData,8612214,168,203)
{
link(onEventData,350128:doConvert,[])
link(Data,8832102:FormatTime,[])
}
Add(Math,14346540,399,259)
{
OpType=2
Op2=1000
link(onResult,10366296:doOperation,[])
}
Add(DateConvertor,350128,245,203)
{
Mode=17
Format="dd:MM:yyyy HH:mm:ss"
link(onResult,8126471:doOperation,[])
}
Add(Math,8126471,322,203)
{
OpType=1
Op2=10790
link(onResult,14346540:doOperation,[(376,209)(376,265)])
}
Add(Memory,16439439,567,203)
{
}
Add(Math,10366296,448,259)
{
Op2=555
link(onResult,16439439:doValue,[(524,265)(524,209)])
}
END_SDK
Add(FormatStr,3598329,567,182)
{
Mask="GET/realtime%1"
Point(FString)
link(Str1,6173171:Var2,[(573,162)(566,162)])
}
Add(LineBreakEx,8370851,630,131)
{
Caption="secret"
Type=2
}
Add(HMAC,379787,616,224)
{
Algorithm=2
link(Data,3598329:FString,[(622,219)(573,219)])
link(Key,8370851:getVar,[(629,184)(636,184)])
}
Add(GetDataEx,6173171,560,147)
{
link(Data,9626517:Value,[])
}
Add(FormatStr,1317747,210,385)
{
DataCount=3
Mask="{"op": "subscribe", "args": ["order", "position", "wallet", "execution"]}\r\n"
link(onFString,13041451:doData,[])
}
Add(HubEx,8092827,329,371)
{
Angle=3
link(onEvent,133730:doConsoleInput,[(333,363)])
}
Add(StrMask,8215290,567,385)
{
Mask="*"success":true,*"
link(onTrue,1317747:doString,[(611,398)(611,459)(201,459)(201,391)])
}
Add(Hub,1860636,525,343)
{
link(onEvent2,8215290:doCompare,[(553,356)(553,391)])
}
Add(ChangeMon,13041451,259,385)
{
link(onData,8092827:doWork1,[(341,391)(341,377)])
}


компонент hmac есть у Netspirit
карма: 0

0
Редактировалось 1 раз(а), последний 2022-10-06 23:58:30