3/30/2024 0 Comments Spotware ctrader![]() send ( request ) # You can use the returned Twisted deferred to attach callbacks # for getting message response or error backs for getting error if something went wrong # deferred.addCallbacks(onProtoOAApplicationAuthRes, onError) deferred. clientSecret = "Your application Client secret" # Client send method returns a Twisted deferred deferred = client. ![]() clientId = "Your application Client ID" request. PROTOBUF_PORT, TcpProtocol ) def onError ( failure ): # Call back for errors print ( "Message Error: ", failure ) def connected ( client ): # Callback for client connection print ( " \n Connected" ) # Now we send a ProtoOAApplicationAuthReq request = ProtoOAApplicationAuthReq () request. PROTOBUF_DEMO_HOST client = Client ( host, EndPoints. From ctrader_open_api import Client, Protobuf, TcpProtocol, Auth, EndPoints from ctrader_open_pb2 import * from ctrader_open_pb2 import * from ctrader_open_pb2 import * from ctrader_open_pb2 import * from twisted.internet import reactor hostType = input ( "Host (Live/Demo): " ) host = EndPoints.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |