Beispiel #1
0
 public XbtceProvider()
 {
     ApiProvider = new RestApiClientProvider <IXbtceApi>(XbtceApiUrl, this, (k) => new XbtceAuthenticator(k).GetRequestModifierAsync)
     {
         DecompressionMethods = DecompressionMethods.GZip | DecompressionMethods.Deflate
     };
 }
Beispiel #2
0
 public KrakenProvider()
 {
     ApiProvider = new RestApiClientProvider <IKrakenApi>(KrakenApiUrl, this, k => new KrakenAuthenticator(k).GetRequestModifierAsync)
     {
         JsonSerializerSettings = CreateJsonSerializerSettings()
     };
 }
Beispiel #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";
        }
Beispiel #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);
            }
        }
Beispiel #5
0
 public Bit2CProvider()
 {
     ApiProvider = new RestApiClientProvider <IBit2CApi>(Bit2CApiUrl, this, (k) => null);
 }
Beispiel #6
0
 public BinanceProvider()
 {
     ApiProvider = new RestApiClientProvider <IBinanceApi>(BinanceApiUrl, this, k => new BinanceAuthenticator(k).GetRequestModifierAsync);
 }
Beispiel #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);
 }
Beispiel #8
0
 public GdaxProvider()
 {
     ApiProvider = new RestApiClientProvider <IGdaxApi>(GdaxApiUrl, this, k => null);
 }
Beispiel #9
0
 public OkexProvider()
 {
     ApiProvider = new RestApiClientProvider <IOkexApi>(OkexApiUrl, this, (k) => null);
 }
 public CoinCornerProvider()
 {
     ApiProvider = new RestApiClientProvider <ICoinCornerApi>(CoinCornerApiUrl, this, (k) => null);
 }
Beispiel #11
0
 public AcxProvider()
 {
     ApiProvider = new RestApiClientProvider <IAcxApi>(AcxApiUrl, this, (k) => null);
 }
Beispiel #12
0
 public CoinCornerProvider()
 {
     ApiProvider = new RestApiClientProvider <ICoinCornerApi>(CoinCornerApiUrl, this, (k) => new CoinCornerAuthenticator(k).GetRequestModifierAsync);
 }
Beispiel #13
0
 public BrightonPeakProvider()
 {
     ApiProvider = new RestApiClientProvider <IBrightonPeakApi>(BrightonPeakApiUrl, this, (k) => null);
 }
Beispiel #14
0
 public CoinroomProvider()
 {
     ApiProvider = new RestApiClientProvider <ICoinroomApi>(CoinroomApiUrl, this, (k) => null);
 }
Beispiel #15
0
 public GatecoinProvider()
 {
     ApiProvider = new RestApiClientProvider <IGatecoinApi>(GatecoinApiUrl, this, (k) => null);
 }
Beispiel #16
0
 public BtcxIndiaProvider()
 {
     ApiProvider = new RestApiClientProvider <IBtcxIndiaApi>(BtcxIndiaApiUrl, this, (k) => null);
 }
 public CoinsecureProvider()
 {
     ApiProvider = new RestApiClientProvider <ICoinsecureApi>(CoinsecureApiUrl, this, (k) => null);
 }
Beispiel #18
0
 public DsxProvider()
 {
     ApiProviderPublic  = new RestApiClientProvider <IDsxApi>(DsxApiPublicUrl, this, (k) => null);
     ApiProviderPrivate = new RestApiClientProvider <IDsxApi>(DsxApiPrivateUrl, this, (k) => new DsxAuthenticator(k).GetRequestModifierAsync);
 }
Beispiel #19
0
 public PaymiumProvider()
 {
     ApiProvider = new RestApiClientProvider <IPaymiumApi>(PaymiumApiUrl, this, (k) => null);
 }
Beispiel #20
0
 public BtcMarketsProvider()
 {
     ApiProvider = new RestApiClientProvider <IBtcMarketsApi>(BtcMarketsApiUrl, this, (k) => null);
 }
Beispiel #21
0
 public TuxExchangeProvider()
 {
     ApiProvider = new RestApiClientProvider <ITuxExchangeApi>(TuxExchangeApiUrl, this, (k) => null);
 }
Beispiel #22
0
 public CryptopiaProvider()
 {
     ApiProvider = new RestApiClientProvider <ICryptopiaApi>(CryptopiaApiUrl, this, (k) => null);
 }
Beispiel #23
0
 public BlinkTradeProvider()
 {
     ApiPublicProvider  = new RestApiClientProvider <IBlinkTradeApi>(BlinkPublicApiUrl, this, (k) => null);
     ApiPrivateProvider = new RestApiClientProvider <IBlinkTradeApi>(BlinkTradePrivateApiUrl, this, (k) => new BlinkTradeAuthenticator(k).GetRequestModifierAsync);
 }
Beispiel #24
0
 public CoinbaseProvider()
 {
     ApiProvider     = new RestApiClientProvider <ICoinbaseApi>(CoinbaseApiUrl, this, k => new CoinbaseAuthenticator(k).GetRequestModifierAsync);
     GdaxApiProvider = new RestApiClientProvider <IGdaxApi>(GdaxApiUrl);
 }
Beispiel #25
0
 public CexProvider()
 {
     ApiProvider = new RestApiClientProvider <ICexApi>(CexApiUrl, this, k => null);
 }
Beispiel #26
0
 public PoloniexProvider()
 {
     ApiProvider = new RestApiClientProvider <IPoloniexApi>(PoloniexApiUrl, this, k => new PoloniexAuthenticator(k).GetRequestModifierAsync);
 }
Beispiel #27
0
 public ItBitProvider()
 {
     ApiProvider = new RestApiClientProvider <IItBitApi>(ItBitApiUrl, this, k => null);
 }
Beispiel #28
0
 public BlinkTradeProvider()
 {
     ApiProvider = new RestApiClientProvider <IBlinkTradeApi>(BlinkTradeApiUrl, this, (k) => null);
 }
Beispiel #29
0
 public BitcoinIndonesiaProvider()
 {
     ApiProvider = new RestApiClientProvider <IBitcoinIndonesiaApi>(BitcoinIndonesiaApiUrl, this, (k) => null);
 }
Beispiel #30
0
 public KunaProvider()
 {
     ApiProvider = new RestApiClientProvider <IKunaApi>(KunaApiUrl, this, (k) => new KunaAuthenticator(k).GetRequestModifierAsync);
 }