Skip to content

kamilk91/CSharp-Bitclude-API-Manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Info

Bitclude.com market: Bitclude.com

C# API connector to market bitclude, allows you placing, seeing, and managing offers.

Library is PLUGandPLAY. Just provide your data, and go!

Requirements

  • Newtonsoft.JSON
  • RestSharp
  • WebSocketSharp (optional)

Methods

Methods are described in summary.

This package is not unit tested.

Example

BCRestClient bcClient = new BCRestClient("key", "id");
            
            
            NewTransactionResponseModel newTrans  = bcClient.PlaceOrder(new LimitTransactionModel
            {
                action = TransactionType.BUY,
                amount = "10",
                rate = "1",
                market1 = CryptoCurrency.BTC,
                market2 = FiatCurrency.PLN,
                
            });

            if(newTrans.success)
            {
                Console.WriteLine($"Offer {newTrans.code} placed with message {newTrans.message}");
                

                TransactionModel transactions = bcClient.GetActiveTransactions();
                foreach(Offer trans in transactions.offers)
                {

                    Console.WriteLine($"Canceling {trans.nr} {trans.price} {trans.offertype}");
                    
                    bcClient.CancelOffer(trans);
                }
            }

Releases

No releases published

Packages

No packages published

Languages