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.
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で JSON Format についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!