View bybit_websocket_execution_example.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def processing_execution(data_dic_one): | |
leaves_qty = dic_json.get('leaves_qty') | |
if leaves_qty > 0 : | |
return | |
## 여기 이하 전량체결 이벤트일 때 수행됨. | |
## 봇에서 주문 낸 지정가 주문(지정가 의도했으나 시장가 체결된것 포함) 이 전량체결 시점임. | |
_symbol = dic_json.get('symbol') |
View bybit USDT perpetual real time execution data.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################ bybit WebSocket example. USDT perpetual ETHUSDT | |
import asyncio | |
import websockets | |
import json |
View bybit_websocketsharp_tls_handshake_error_resolved.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading; | |
using WebSocketSharp; | |
namespace TestWebSocketSharp | |
{ | |
class Program |
View WebSocketSharp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading; | |
using WebSocketSharp; | |
namespace TestWebSocketSharp | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
View CCyManagerPosi.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//+------------------------------------------------------------------+ | |
//| CyManager_Posi.mqh | | |
//| igotit | | |
//| https://www.mql5.com | | |
//+------------------------------------------------------------------+ | |
#property copyright "igotit" | |
#property link "https://www.mql5.com" | |
#property version "1.00" | |
#include <Trade\PositionInfo.mqh> |
View bybit_new_candel.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import websockets | |
import json | |
import time | |
import hmac | |
def proc_klineV2_usd(str_json): |
View bybit_websocket_multi_connection_by_asyncio.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import websockets | |
import json | |
import time | |
import hmac |
View bybit_api_secret_connection.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import websockets | |
import json | |
import time | |
import hmac | |
def get_args_secret(_api_key, _api_secrete): | |
expires = str(int(round(time.time())+5000))+"000" |
View apikey_url_bybit.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bybit 에서 발급받은 본인 api key 기록 | |
bybit 에서 발급받은 본인 secrete key 기록. | |
https://api.bybit.com | |
wss://stream.bybit.com/realtime | |
wss://stream.bybit.com/realtime_public | |
wss://stream.bybit.com/realtime_private | |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
View extract_cst_from_jsonstr.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h" //for Visual C++ project. | |
#include <iostream> // for std::string | |
/* | |
Json 형식예. | |
{ | |
"ret_code": 0, | |
"ret_msg": "OK", |
NewerOlder