股票量化交易接口最大的优势是可以高效的帮助投资者进行股票交易,也就是说我们可以通过这样的股票量化交易接口,直接链到证券公司柜台,然后把买卖指令传输到交易所服务器进行撮合交易!
那么正是因为股票l2数据接口的应用让投资者的交易速度提升了不止一点点。那么在二级市场里,毫秒的差异也会让交易者错过好的价格,因此股票l2数据接口的出现就为投资者解决了这个问题!
1.股票量化交易接口代码(部分)
public class MyProtocolResolver implements ProtocolResolver {
public static final String PATH = "path:";
@Override
public Resource resolve(String location, ResourceLoader resourceLoader) {
if (!location.startsWith(PATH))
return null;
String realPath = location.substring(5);
String classPath = "classpath:config/" + realPath;
return resourceLoader.getResource(classPath);
}
2.股票l2数据接口交易所说明:
交易所 | 数据类型 |
上交所 | 十档行情快照(Level-2) |
委托队列(Level-2) | |
逐笔成交(Level-2) | |
深交所 | 十档行情快照(Level-2) |
逐笔委托(Level-2) | |
委托队列(Level-2) | |
逐笔成交(Level-2) | |
沪深交易所 | 期权、可转债 |
那么以上就是小编对量化交易和股票l2数据接口的分析了,总的来说接口的存在就是投资者的投资好工具,大家对l2数据行情接口想多点了解的话可以看下方名片!