Saturday, 04 June 2022
  1 Replies
  1.1K Visits
  Subscribe
I am interested in your binance component, how can I place an order? is there any example?

Thanks
Paul
2 years ago
·
#1105
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
  • Page :
  • 1
There are no replies made for this post yet.
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below.
Supported: gif,jpg,png,jpeg,zip,rar,pdf,pas,dfm,dpr,dproj,dpk
· Insert · Remove
  Upload Files (Maximum 10MB)