コード例 #1
0
 protected internal static Dictionary <string, string> CreateCoupon(Currency currency, decimal amount)
 {
     return(new Dictionary <string, string>
     {
         { "method", "CreateCoupon" },
         { "currency", ConvertionHelper.EnumToString(currency) },
         { "amount", ConvertionHelper.DecimalToString(amount) }
     });
 }
コード例 #2
0
 protected internal static Dictionary <string, string> Trade(Pair pair, TradeType type, decimal rate, decimal amount)
 {
     return(new Dictionary <string, string>()
     {
         { "method", "Trade" },
         { "pair", ConvertionHelper.EnumToString(pair) },
         { "type", ConvertionHelper.EnumToString(type) },
         { "rate", ConvertionHelper.DecimalToString(rate) },
         { "amount", ConvertionHelper.DecimalToString(amount) }
     });
 }