예제 #1
0
        public async Task <IPair> PairAsync(string Name, System.Threading.CancellationToken cancellationToken)
        {
            YobitPair pair = new YobitPair(Name);
            await pair.InitializeAsync(_stock, cancellationToken);

            return(pair);
        }
예제 #2
0
        public async Task <IMarketStatus> StatusAsync(System.Threading.CancellationToken cancellationToken)
        {
            YobitPair pair = new YobitPair("bio_btc");
            await pair.InitializeAsync(_stock, cancellationToken);

            return(new YobitStatus(pair?.Ticker?.BIOBTC != null && pair.Sell > 0 && pair.Buy > 0));
        }
예제 #3
0
        public async Task <IEnumerable <IPair> > PairsAsync(System.Threading.CancellationToken cancellationToken)
        {
            YobitPair pairBIOBTC = new YobitPair("bio_btc");
            await pairBIOBTC.InitializeAsync(_stock, cancellationToken);

            YobitPair pairBIORUR = new YobitPair("bio_rur");
            await pairBIORUR.InitializeAsync(_stock, cancellationToken);

            return(new IPair[] { pairBIOBTC, pairBIORUR });
        }