Send JSON write 3commas

I wrote a code to calculate an entry point for my deals in 3commas.
now i need to send it to their api. this is the .NET officail code:
public XCommasResponse<Bot> StartNewDeal(int botId) => this.StartNewDealAsync(botId).Result;
public async Task<XCommasResponse<Bot>> StartNewDealAsync(int botId, string pair = null, bool skipSignalChecks = false, bool skipOpenDealsChecks = false)
{
var path = $"{BaseAddress}/ver1/bots/{botId}/start_new_deal";
using (var request = XCommasRequest.Post(path)
.WithSerializedContent(new StartNewDealData { Pair = pair, SkipOpenDealsChecks = skipOpenDealsChecks, SkipSignalChecks = skipSignalChecks }).Force(UserMode).Sign(this))
{
return await this.GetResponse<Bot>(request).ConfigureAwait(false);
}
}
It utlizies POST and JSON I think.
I want it in matlab. Thank you.

Respuestas (0)

Productos

Versión

R2022a

Etiquetas

Preguntada:

el 21 de Ag. de 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by