| 程序包 | 说明 |
|---|---|
| com.monmonkeygroup.openapi.client | |
| com.monmonkeygroup.openapi.protocol | |
| com.monmonkeygroup.openapi.quote | |
| com.monmonkeygroup.openapi.trade |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
Client.doRequest(String actionName,
Object request,
Class<T> replyClazz) |
void |
Client.init() |
void |
IClientConn.init() |
void |
WebsocketConn.init() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
Packet.deserialize(Class<T> clazz) |
| 限定符和类型 | 方法和说明 |
|---|---|
BrokerQueue |
QuoteContext.getBroker(String symbol)
Get security broker queue
|
MarketDepth |
QuoteContext.getDepth(String symbol)
Get market depth
|
List<Kbar> |
QuoteContext.getHistoryKbar(String symbol,
int period,
int rehabType,
String beginTime,
String endTime)
Get security kbars
|
List<Kbar> |
QuoteContext.getKbar(String symbol,
int period,
int rehabType,
int maxNum)
Get security kbars
|
List<MarketInfo> |
QuoteContext.getMarketInfo()
Get all market states
|
List<ParticipantInfo> |
QuoteContext.getParticipants()
Get participant IDs
|
List<SecurityQuote> |
QuoteContext.getQuote(List<String> symbolList)
Get quote of securities
|
List<RealTimePrice> |
QuoteContext.getRealTimePrice(List<String> symbolList)
Get real-time price of securities
|
List<SecurityCalcIndex> |
QuoteContext.getSecurityCalcIndex(List<String> symbolList)
Get calculate index of securities
|
List<SecurityName> |
QuoteContext.getSecurityList(String market,
boolean availableTrading) |
List<SecurityStaticInfo> |
QuoteContext.getStaticInfo(List<String> symbolList)
Get static information of securities
|
SubscriptionInfoReply |
QuoteContext.getSubscriptionInfo(boolean reqAllConn)
Get subscription information
|
List<TimeShare> |
QuoteContext.getTimeShare(String symbol,
int section)
Get security timeshares
|
List<Trade> |
QuoteContext.getTrade(String symbol)
Get security trades
|
void |
QuoteContext.subscribe(List<String> symbolList,
List<String> actionNameList,
boolean isFirstPush)
Subscribe
|
void |
QuoteContext.unsubscribe(boolean unsubAll,
List<String> symbolList,
List<String> actionNameList)
Unubscribe
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
TradeContext.amendOrder(AmendOrderRequest request)
Amends an existing open order in the trading system.
|
void |
TradeContext.cancelOrder(CancelOrderRequest request)
Cancel a existing open orders in the trading system.
|
Order |
TradeContext.createOrder(CreateOrderRequest request)
Create a new order
|
AccountSummaryReply |
TradeContext.getAccountSummary(String tradeAccountId)
Get a summary of the trading account,
|
List<Position> |
TradeContext.getPosition(String tradeAccountId)
Query the position list of the trading account
|
List<Order> |
TradeContext.getTodayOrders(TodayOrderRequest request)
Get today orders
|
List<TradeAccount> |
TradeContext.listTradeAccounts()
Get a list of trading accounts
|
void |
TradeContext.subscribe(List<String> actionNameList)
Subscribe
|
void |
TradeContext.unsubscribe(List<String> actionNameList)
Unsubscribe
|
Copyright © 2025. All rights reserved.