How to add an integer to a string in python - Oanda API

前端 未结 1 1826
暖寄归人
暖寄归人 2021-01-26 15:24

I am trying add a stop loss order along with a buy order using Oanda\'s REST API. As of right now I can easily specify a price for a stop loss, however, I would like to calcula

相关标签:
1条回答
  • 2021-01-26 16:13

    If you want to combine string and you should convert float to string

    ""+str(.1)
    
    0 讨论(0)
提交回复
热议问题