[AUTOMATIC TRADING SYSTEM 2] Functions to compare two exchangessteemCreated with Sketch.

in autotrading •  4 years ago 

First Step.
Install Visual studio and make c# winform project.
(do you want to know even these? to be continued on other series :)

and open the window for new package. (sorry. below example is korean.)
image.png

like this image. "CCXTSharp"

image.png

//and include CCXTSharp library.

using CCXTSharp;

//call thread function(you made)
//like this

MainThread = new Thread(ThreadFunc);
MainThread.Start();

//so in thread fucntion, call a ccxt api and receive binance' market information or other exchanges's one.

private void ThreadFunc()
{
Dictionary<string, Ticker> AllTicker = GetFetchTickers("binance").GetAwaiter().GetResult();
}

public async Task<Dictionary<string, Ticker> > GetFetchTickers(string Exchange)
{
CcxtAPI ccxtAPI = new CcxtAPI(@"....\ccxt\ccxtAPI.exe");
Dictionary<string, Ticker> AllTicker = await ccxtAPI.FetchTickers(Exchange);
await ccxtAPI.Close();
return AllTicker;
}

and. make GUI Controls !

image.png

I made Functions to compare two exchanges. and filtered for One-to-one comparison.
and then sorted for trading using the price difference between exchanges

I will add new functions for perfect trading system.
see you!

  • If you want the full source code, ask this post.
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

it is very kind.