barter-rs / barter-data-rs

NOTE: Barter-Data migrated to Barter monorepo: https://www.github.com/barter-rs/barter-rs
https://github.com/orgs/barter-rs/repositories
MIT License
100 stars 64 forks source link

Can China Futures CTP interface be supported #9

Closed kingmo888 closed 1 month ago

kingmo888 commented 1 year ago

Similar implementations include vnpy, which supports many exchanges, as well as China's futures market and stock market. Unfortunately, the efficiency of the Python based framework is not very satisfactory. I have been looking for a Rust based framework. I was lucky to find Barter, but only support crypto exchanges.

Development Documentation:CTP Client Development Guide.pdf CTP_Client_Development_Guide.pdf

c++ code & dll is:v6.6.8_traderapi.zip (I found the trust encapsulation of the ctp interface, but I don't know how to combine it with barter:https://github.com/WiSaGaN/ctp-rs)

test account is :https://www.simnow.com.cn/ (MarketPrice not need account)

c10k-cc commented 1 year ago

Hello @kingmo888 !

Thanks for your question / suggestion! This project is still very small and is gaining traction... Currently most of the contributors are focused on enhancing the crypto exchanges support, even though the design goal of the project is indeed to be agnostic of different types of assets traded. So, my advice is that you wait a little bit until we organise the project & update docs regarding contributing, project architecture, small guides for adding new data sources etc. and then wait either for some contributor to adopt this issue, or start working on it on your own.

If you have any additional questions, it is best that you hop on our discord server (https://discord.gg/wE7RqhnQMV), and chat there with the rest of community.

Sincerely, @carpetmaker

kingmo888 commented 1 year ago

Hi @carpetmaker I am very pleased to get your reply. I once asked the same question on gitlab and didn't get a response. Later, I found that github should be used as the publishing platform again. We look forward to Barter's improvement in the direction of multiple assets. By the way, taking VNPY as an example, it is based on the event driven trading framework built on the basis of CTP (China Futures Market Trading Unified Interface). Taking CTP as the starting point, it derives a multi asset trading framework including cryptocurrency, and has so far obtained more than 19.3K stars. For other frameworks with similar paths,

c10k-cc commented 1 year ago

By the way, taking VNPY as an example,

This project looks amazing! It seems to have a very advanced feature set, is well-documented and seems to be very popular / very actively worked on. There is however an unfortunate language barrier (most of the resources are in Chinese), but that is where I will definitely use your occasional help of translating the resources used for the potential reference implementation later on.

Feel free to join the discord server here, so you can chat with the rest of the community. (hopefully you don't have any geo-location / regional restrictions)

just-a-stream commented 1 month ago

Closing this now we've migrated this repo to the new barter-rs monorepo: https://github.com/barter-rs/barter-rs