Send JSON write 3commas
Show older comments
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.
Answers (0)
Categories
Find more on JSON Format in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!