Example #1
0
        public static Transfer BuyBitcoins(Quantity quantity, APIKey apiKey)
        {
            TransferResponse transferResponse = (TransferResponse)PostResource(
                "buys",
                quantity,
                typeof(Quantity),
                typeof(TransferResponse),
                apiKey
                );

            return transferResponse.Transfer;
        }
Example #2
0
 public static Transfer SellBitcoins(decimal qty, APIKey apiKey)
 {
     Quantity quantity = new Quantity() { Value = qty };
     return SellBitcoins(quantity, apiKey);
 }