By Guest on Saturday, 04 June 2022
Posted in General
Replies 1
Likes 0
Views 1.1K
Votes 0
I am interested in your binance component, how can I place an order? is there any example?

Thanks
Paul
Hello,

You can use the following code to send a market order


oBinance := TsgcWSAPI_Binance.Create(nil);
oBinance.Binance.ApiKey := '<api key>';
oBinance.Binance.ApiSecret := '<api secret>';
ShowMessage(oBinance.REST_API.NewOrder('BNBBTC', 'BUY', 'MARKET', '', 1));


More info here:

https://www.esegece.com/help/sgcWebSockets/#t=Components%2FAPIs%2FAPI%2FBinance%2FREST_API%2FBinance_Trade_Spot.htm

Kind Regards,
Sergio
·
2 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post