Skip to content

Instantly share code, notes, and snippets.

public void CreateStoreOrder(string currencyCode, string orderAction, decimal price, decimal amount, decimal totalLimit, long? orderId){
Int64 requestId = (Int64)(DateTime.UtcNow - UnixEpoch).TotalSeconds; // Usa Unix Timestamp como requestId
var request = (HttpWebRequest)WebRequest.Create("https://api.blinktrade.com/tapi/v1/message");
var postData = new
{
MsgType = "D",
ClOrdID = requestId,
Symbol = "BTCBRL",
Side = (orderAction == "Buy") ? "1" : "2",