Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Threading;
using WebSocketSharp;
namespace TestWebSocketSharp
{
class Program
{
static void Main(string[] args)
{
using System;
using System.Threading;
using WebSocketSharp;
namespace TestWebSocketSharp
{
class Program
//+------------------------------------------------------------------+
//| 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>
import asyncio
import websockets
import json
import time
import hmac
def proc_klineV2_usd(str_json):
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"
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
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@igotit-anything
igotit-anything / MQL5_GetFinCnadle.py
Created April 21, 2019 13:38
Oython easy get financial data from MetaTrader5
from MetaTrader5 import *
import pandas as pd
pd.set_option('display.max_columns', 500) # number of columns to be displayed
pd.set_option('display.width', 1500) # max table width to display
import matplotlib.pyplot as plt
MT5Initialize() # connect to MT5
MT5WaitForTerminal() # wait till MT5 ready
### get candle data
#include "stdafx.h" //for Visual C++ project.
#include <iostream> // for std::string
/*
Json 형식예.
{
"ret_code": 0,
"ret_msg": "OK",
#include <iostream>
#include <cpprest/http_client.h>
#include <cpprest/filestream.h>
#pragma comment(lib, "cpprest141_2_10.LIB")
using namespace std;
using namespace utility; // Common utilities like string conversions
using namespace web; // Common features like URIs.
using namespace web::http; // Common HTTP functionality
import bybit
client = bybit.bybit(test=True, api_key="my api key", api_secret="my secret key")
# Get server time
print(client.Common.Common_get().result()[0])
# Get Symbol lists
print(client.Symbol.Symbol_get().result()[0]["result"][0])