-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBit2c.cs
79 lines (72 loc) · 3.15 KB
/
Bit2c.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
using System;
using System.Collections.Generic;
namespace Bit2cPlatform.Client
{
public class Bit2c : ExchangeClient
{
public Bit2c(string key, string secret, string url = "https://www.bit2c.co.il/")
: base(key, secret, url)
{
}
public class Pairs
{
public static PairType BtcNis = new PairType() { C1 = new CoinType("BTC"), C2 = new CoinType("NIS") };
public static PairType LtcNis = new PairType() { C1 = new CoinType("LTC"), C2 = new CoinType("NIS") };
public static PairType LtcBtc = new PairType() { C1 = new CoinType("LTC"), C2 = new CoinType("BTC") };
}
public override List<PairType> GetSupportedPairs()
{
/* Order is important! Used for desrializing */
return new List<PairType>()
{
Pairs.BtcNis,
Pairs.LtcBtc,
Pairs.LtcNis,
};
}
public override List<CoinType> GetSupportedCoins()
{
return new List<CoinType>() {
new CoinType("BTC"),
new CoinType("LTC"),
};
}
public override List<CoinType> GetAcceptPaymentCoinTypes()
{
return new List<CoinType>() {
new CoinType("BTC"),
new CoinType("NIS"),
};
}
protected override Dictionary<int, string> dicTypeIds
{
get
{
return new Dictionary<int, string>
{
{0, "SellBTC"}, /* Sell BTC for NIS */
{1, "BuyBTC"}, /* Buy BTC in NIS */
{2, "FeeBuyBTC"},
{3, "FeeSellBTC"},
{4, "DepositBTC"}, /* Deposit of BTC */
{5, "DepositNIS"}, /* Deposit of NIS */
{6, "WithdrawalBTC"}, /* Withdrawl of BTC */
{7, "WithdrawalNIS"}, /* Withdrawl of NIS */
{8, "FeeWithdrawalBTC"}, /* Fee for withdrawl of BTC */
{9, "FeeWithdrawalNIS"}, /* Fee for withdrawl of NIS */
{10, "Unknown"},
{11, "PayWithBTC"}, /* Off-chain payment to exchange user sent */
{12, "ReceivedPaymentBTC"}, /* Off-chain payment from exchange user recived */
{13, "FeeReceivedPaymentBTC"},
{14, "DepositLTC"}, /* Deposit of LTC */
{15, "WithdrawalLTC"}, /* Withdrawl of LTC */
{16, "FeeWithdrawalLTC"}, /* Fee for withdrawl of LTC */
{17, "BuyLTCBTC"}, /* Buy LTC in BTC */
{18, "SellLTCBTC"}, /* Sell LTC for BTC */
{19, "BuyLTCNIS"}, /* Buy LTC in NIS */
{20, "SellLTCNIS"}, /* Sell LTC for NIS */
};
}
}
}
}