Exemple #1
0
 public XbtceProvider()
 {
     ApiProvider = new RestApiClientProvider <IXbtceApi>(XbtceApiUrl, this, (k) => new XbtceAuthenticator(k).GetRequestModifierAsync)
     {
         DecompressionMethods = DecompressionMethods.GZip | DecompressionMethods.Deflate
     };
 }
Exemple #2
0
 public KrakenProvider()
 {
     ApiProvider = new RestApiClientProvider <IKrakenApi>(KrakenApiUrl, this, k => new KrakenAuthenticator(k).GetRequestModifierAsync)
     {
         JsonSerializerSettings = CreateJsonSerializerSettings()
     };
 }
Exemple #3
0
        public WexProvider()
        {
            ApiProviderPublic  = new RestApiClientProvider <IWexApi>(WexApiUrlPublic, this, (k) => null);
            ApiProviderPrivate = new RestApiClientProvider <IWexApi>(WexApiUrlPrivate, this, (k) => new WexAuthenticator(k).GetRequestModifierAsync);

            // Add new methods that support exchange.
            ApiMethodsConfig.Add(ApiMethodNamesTiLiWe.WithdrawCoin, "WithdrawCoin");
            ApiMethodsConfig.Add(ApiMethodNamesTiLiWe.GetInfo, "getInfo");

            // Update existing common methods that support exchange.
            ApiMethodsConfig[ApiMethodNamesTiLiWe.OrderInfo] = "OrderInfo";
        }
Exemple #4
0
        public BitKonanProvider()
        {
            ApiProvider = new RestApiClientProvider <IBitKonanApi>(BitKonanApiUrl, this, (k) => null);

            if (_assetPairBtcUsd == null)
            {
                _assetPairBtcUsd = new AssetPair("BTC", "USD", this);
            }
            if (_assetPairLtcUsd == null)
            {
                _assetPairLtcUsd = new AssetPair("LTC", "USD", this);
            }
        }
Exemple #5
0
 public Bit2CProvider()
 {
     ApiProvider = new RestApiClientProvider <IBit2CApi>(Bit2CApiUrl, this, (k) => null);
 }
Exemple #6
0
 public BinanceProvider()
 {
     ApiProvider = new RestApiClientProvider <IBinanceApi>(BinanceApiUrl, this, k => new BinanceAuthenticator(k).GetRequestModifierAsync);
 }
Exemple #7
0
 public YobitProvider()
 {
     Encoding.RegisterProvider(new YobitEncodingProvider());
     ApiProvider        = new RestApiClientProvider <IYobitApi>(YobitApiUrl, this, (k) => null);
     ApiProviderPrivate = new RestApiClientProvider <IYobitApi>(YobitApiPrivateUrl, this, (k) => new YobitAuthenticator(k).GetRequestModifierAsync);
 }
Exemple #8
0
 public GdaxProvider()
 {
     ApiProvider = new RestApiClientProvider <IGdaxApi>(GdaxApiUrl, this, k => null);
 }
Exemple #9
0
 public OkexProvider()
 {
     ApiProvider = new RestApiClientProvider <IOkexApi>(OkexApiUrl, this, (k) => null);
 }
 public CoinCornerProvider()
 {
     ApiProvider = new RestApiClientProvider <ICoinCornerApi>(CoinCornerApiUrl, this, (k) => null);
 }
Exemple #11
0
 public AcxProvider()
 {
     ApiProvider = new RestApiClientProvider <IAcxApi>(AcxApiUrl, this, (k) => null);
 }
Exemple #12
0
 public CoinCornerProvider()
 {
     ApiProvider = new RestApiClientProvider <ICoinCornerApi>(CoinCornerApiUrl, this, (k) => new CoinCornerAuthenticator(k).GetRequestModifierAsync);
 }
Exemple #13
0
 public BrightonPeakProvider()
 {
     ApiProvider = new RestApiClientProvider <IBrightonPeakApi>(BrightonPeakApiUrl, this, (k) => null);
 }
Exemple #14
0
 public CoinroomProvider()
 {
     ApiProvider = new RestApiClientProvider <ICoinroomApi>(CoinroomApiUrl, this, (k) => null);
 }
Exemple #15
0
 public GatecoinProvider()
 {
     ApiProvider = new RestApiClientProvider <IGatecoinApi>(GatecoinApiUrl, this, (k) => null);
 }
Exemple #16
0
 public BtcxIndiaProvider()
 {
     ApiProvider = new RestApiClientProvider <IBtcxIndiaApi>(BtcxIndiaApiUrl, this, (k) => null);
 }
 public CoinsecureProvider()
 {
     ApiProvider = new RestApiClientProvider <ICoinsecureApi>(CoinsecureApiUrl, this, (k) => null);
 }
Exemple #18
0
 public DsxProvider()
 {
     ApiProviderPublic  = new RestApiClientProvider <IDsxApi>(DsxApiPublicUrl, this, (k) => null);
     ApiProviderPrivate = new RestApiClientProvider <IDsxApi>(DsxApiPrivateUrl, this, (k) => new DsxAuthenticator(k).GetRequestModifierAsync);
 }
Exemple #19
0
 public PaymiumProvider()
 {
     ApiProvider = new RestApiClientProvider <IPaymiumApi>(PaymiumApiUrl, this, (k) => null);
 }
 public BtcMarketsProvider()
 {
     ApiProvider = new RestApiClientProvider <IBtcMarketsApi>(BtcMarketsApiUrl, this, (k) => null);
 }
Exemple #21
0
 public TuxExchangeProvider()
 {
     ApiProvider = new RestApiClientProvider <ITuxExchangeApi>(TuxExchangeApiUrl, this, (k) => null);
 }
Exemple #22
0
 public CryptopiaProvider()
 {
     ApiProvider = new RestApiClientProvider <ICryptopiaApi>(CryptopiaApiUrl, this, (k) => null);
 }
Exemple #23
0
 public BlinkTradeProvider()
 {
     ApiPublicProvider  = new RestApiClientProvider <IBlinkTradeApi>(BlinkPublicApiUrl, this, (k) => null);
     ApiPrivateProvider = new RestApiClientProvider <IBlinkTradeApi>(BlinkTradePrivateApiUrl, this, (k) => new BlinkTradeAuthenticator(k).GetRequestModifierAsync);
 }
Exemple #24
0
 public CoinbaseProvider()
 {
     ApiProvider     = new RestApiClientProvider <ICoinbaseApi>(CoinbaseApiUrl, this, k => new CoinbaseAuthenticator(k).GetRequestModifierAsync);
     GdaxApiProvider = new RestApiClientProvider <IGdaxApi>(GdaxApiUrl);
 }
Exemple #25
0
 public CexProvider()
 {
     ApiProvider = new RestApiClientProvider <ICexApi>(CexApiUrl, this, k => null);
 }
Exemple #26
0
 public PoloniexProvider()
 {
     ApiProvider = new RestApiClientProvider <IPoloniexApi>(PoloniexApiUrl, this, k => new PoloniexAuthenticator(k).GetRequestModifierAsync);
 }
Exemple #27
0
 public ItBitProvider()
 {
     ApiProvider = new RestApiClientProvider <IItBitApi>(ItBitApiUrl, this, k => null);
 }
Exemple #28
0
 public BlinkTradeProvider()
 {
     ApiProvider = new RestApiClientProvider <IBlinkTradeApi>(BlinkTradeApiUrl, this, (k) => null);
 }
Exemple #29
0
 public BitcoinIndonesiaProvider()
 {
     ApiProvider = new RestApiClientProvider <IBitcoinIndonesiaApi>(BitcoinIndonesiaApiUrl, this, (k) => null);
 }
Exemple #30
0
 public KunaProvider()
 {
     ApiProvider = new RestApiClientProvider <IKunaApi>(KunaApiUrl, this, (k) => new KunaAuthenticator(k).GetRequestModifierAsync);
 }