我对使用API
很陌生,我试图弄清楚如何获得对POST
的响应。
使用Ubuntu。我已经在ngrok上设置了用于POSTBACK的服务器。我正在使用API
下订单。在ngrok终端上显示的响应码为200。显示数据。
屏幕截图:
我正在尝试获取此数据,但我在以下时间获取
:requests.get('http://f3afa497.ngrok.io:80/').text
应用程序中的POSTBACK网址为:https:
这可能是个问题吗?
我总是收到相同的文字:
'{“ placed_by”:“ TY5094”,“ order_id”:“ 190106000009064”,“ exchange_order_id”:“”,“ parent_order_id”:“”,“ status”:“已拒绝”,“ status_message”:“ RMS: EQUITY nse_cm NRML已被阻止注:在NRML产品类型块类型中不允许进行股票定单:ALL“,” order_timestamp“:” 2019-01-06 18:37:21“,” exchange_update_timestamp“:”“,” exchange_timestamp“: “”,“ variety”:“常规”,“交易所”:“ NSE”,“交易代码”:“ INFY”,“ instrument_token”:408065,“ order_type”:“ MARKET”,“ transaction_type”:“购买”,“有效性“:” DAY“,”产品“:” NRML“,”数量“:1,”公开数量“:0,”价格“:0,”触发价格“:0,”平均价格“:0,”填充数量“:0 ,“ pending_quantity”:0,“ cancelled_quantity”:0,“ market_protection”:0,“ tag”:“” \ n}'
哪个来自最新的发布请求方式。查看order_id
我想知道我在做什么错了。
谢谢