Documentation ¶
Index ¶
- Variables
- func CharsToGoString(any interface{}) string
- func GetGoString(data_ptr *C.char) string
- func GetInstrumentsPointer(input_arr []string) **C.char
- func GoCreateLCQuoteApi(client_id int8, folder string) unsafe.Pointer
- func GoCreateLCQuoteSpi() unsafe.Pointer
- func GoCreateLCTraderApi(client_id int8, folder string) unsafe.Pointer
- func GoCreateLCTraderSpi() unsafe.Pointer
- func GoReleaseLCQuoteApi(quote_api unsafe.Pointer)
- func GoReleaseLCQuoteSpi(quote_api unsafe.Pointer)
- func GoReleaseLCTraderApi(trader_api unsafe.Pointer)
- func GoReleaseLCTraderSpi(trader_api unsafe.Pointer)
- func Go_quote_apiLogin(quote_api unsafe.Pointer, ip_addr string, port int, user string, pwd string) int
- func Go_quote_apiOnDepthMarketData(spiPtr C.ulonglong, market_data *C.XTPMD, bid1_qty *C.int64_t, ...)
- func Go_quote_apiOnError(spiPtr C.ulonglong, error_info *C.XTPRI)
- func Go_quote_apiOnOrderBook(spiPtr C.ulonglong, order_book *C.XTPOB)
- func Go_quote_apiOnSubMarketData(spiPtr C.ulonglong, ticker *C.XTPST, error_info *C.XTPRI, is_last C.bool)
- func Go_quote_apiOnSubOrderBook(spiPtr C.ulonglong, ticker *C.XTPST, error_info *C.XTPRI, is_last C.bool)
- func Go_quote_apiRegisterSpi(quote_api unsafe.Pointer, quote_spi unsafe.Pointer)
- func Go_quote_apiSubscribeMarketData(quote_api unsafe.Pointer, stocks map[string]string, e_type int) uint64
- func Go_trader_apiLogin(trader_api unsafe.Pointer, ip_addr string, port int, user string, pwd string, ...) uint64
- func Go_trader_apiOnDisconnected(spiPtr C.ulonglong, session_id C.uint64_t, reason C.int)
- func Go_trader_apiOnError(spiPtr C.ulonglong, error_info *C.XTPRI)
- func Go_trader_apiOnOrderEvent(spiPtr C.ulonglong, order_info *C.XTPQueryOrderRsp, error_info *C.XTPRI)
- func Go_trader_apiOnQueryAsset(spiPtr C.ulonglong, asset *C.XTPQueryAssetRsp_, error_info *C.XTPRI, ...)
- func Go_trader_apiOnQueryOrder(spiPtr C.ulonglong, order_info *C.XTPQueryOrderRsp, error_info *C.XTPRI, ...)
- func Go_trader_apiOnQueryPosition(spiPtr C.ulonglong, position *C.XTPQueryStkPositionRsp_, error_info *C.XTPRI, ...)
- func Go_trader_apiOnQueryTrade(spiPtr C.ulonglong, trade_info *C.XTPQueryTradeRsp, error_info *C.XTPRI, ...)
- func Go_trader_apiOnTradeEvent(spiPtr C.ulonglong, trade_info *C.XTPQueryTradeRsp)
- func Go_trader_apiRegisterSpi(trader_api unsafe.Pointer, trader_spi unsafe.Pointer)
- func SafeShutdown()
Constants ¶
This section is empty.
Variables ¶
View Source
var Md_api unsafe.Pointer
View Source
var Md_spi unsafe.Pointer
Functions ¶
func CharsToGoString ¶
func CharsToGoString(any interface{}) string
func GetGoString ¶
func GetInstrumentsPointer ¶
func GoCreateLCQuoteSpi ¶
func GoCreateLCTraderSpi ¶
func GoReleaseLCQuoteApi ¶
func GoReleaseLCQuoteSpi ¶
func GoReleaseLCTraderApi ¶
func GoReleaseLCTraderSpi ¶
func Go_quote_apiLogin ¶
func Go_quote_apiOnOrderBook ¶
func Go_quote_apiRegisterSpi ¶
func Go_trader_apiLogin ¶
func Go_trader_apiLogin(trader_api unsafe.Pointer, ip_addr string, port int, user string, pwd string, softKey string) uint64
_quote_apiLogin(void * pLC_Api, const char* ip, int port, const char* user, const char* password, XTP_PROTOCOL_TYPE sock_type);
func Go_trader_apiOnTradeEvent ¶
func Go_trader_apiOnTradeEvent(spiPtr C.ulonglong, trade_info *C.XTPQueryTradeRsp)
func SafeShutdown ¶
func SafeShutdown()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.