It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Nextmethod.Cex;
namespace SimpleExample
{
class Program
{
static void Main(string[] args)
{
new Program().RunExample().Wait();
}
const string CexUsername = ""; // Your username on Cex.io
const string CexApiKey = ""; // Your API key
const string CexApiSecret = ""; // Your API secret
private CexApi CexClient { get; set; }
private GhashApi GhashClient { get; set; }
private async Task RunExample()
{
// Using the ApiCredentials Class
// Client = new Api(new ApiCredentials(CexUsername, CexApiKey, CexApiSecret));
// Or not
// CexClient = new CexApi(CexUsername, CexApiKey, CexApiSecret);
// ApiCredentials/(Username, ApiKey, ApiSecret) not needed for public functions
CexClient = new CexApi();
// Get Ticker Data
Ticker tickerData = await CexClient.Ticker(SymbolPair.GHS_BTC);
// Get Order Book
OrderBook orderBook = await CexClient.OrderBook(SymbolPair.GHS_BTC);
// Get Trade history
IEnumerabletradeHistory = await CexClient.TradeHistory(SymbolPair.NMC_BTC);
// ApiCredentials required for user specific calls or "Private Functions"
CexClient = new CexApi(CexUsername, CexApiKey, CexApiSecret);
// Get Account Balance
Balance accountBalance = await CexClient.AccountBalance();
// Get Open Orders
IEnumerableopenOrders = await CexClient.OpenOrders(SymbolPair.LTC_BTC);
// Place an order
OpenOrder openOrder = await CexClient.PlaceOrder(
SymbolPair.GHS_BTC,
new Order
{
Amount = 1.00m,
Price = 0.04644000m,
Type = OrderType.Buy
});
// Cancel an order
bool didSucceed = await CexClient.CancelOrder(openOrder.Id);
// GHash.IO Example
GhashClient = new GhashApi(new ApiCredentials(CexUsername, CexApiKey, CexApiSecret));
// Get Hash Rate
Hashrate hashrate = await GhashClient.Hashrate();
// Get Workers Hash Rate
IEnumerable> workerHashRate = await GhashClient.WorkersHashRate();
}
}
}