Skip to content

Instantly share code, notes, and snippets.

@kwedr
kwedr / gist:134e27c61405acdb5bed4b3a2dfed2c1
Last active August 9, 2021 12:13
元大期貨 行情API with python
# -*- coding: utf-8 -*-
import wx, time
import wx.lib.anchors as anchors
from ctypes import byref, POINTER, windll
from comtypes import IUnknown, GUID
from comtypes.client import GetModule, GetBestInterface, GetEvents
user32 = windll.user32
atl = windll.atl
# -*- coding: utf-8 -*-
import sys, os, time
import ctypes, comtypes, pythoncom
from ctypes import *
from comtypes.client import GetModule, CreateObject
from comtypes.client import ShowEvents, GetEvents, PumpEvents
import queue as queue
q = queue.Queue ()
@kwedr
kwedr / 群益API with pythonnet
Last active May 10, 2018 06:27
群益API with pythonnet
# -*- coding: utf-8 -*-
import sys, os, clr, time
is_py2 = sys.version[0] == '2'
if is_py2:
import Queue as queue
else:
import queue as queue
@kwedr
kwedr / 群益API with cpp
Last active July 6, 2017 08:10
群益API with cpp
#include "stdafx.h"
#include <iostream>
#include <atlbase.h>
#include <atlcom.h>
#include <atlcomcli.h>
#include <map>
#include <queue>
#include <mutex>
//#import "SKCOM.tlb"