Topics
01 Feb 2024, 11:00
 182
 1
09 Oct 2023, 06:53
 408
 2
Replies

ultmnc
12 Feb 2024, 08:05 ( Updated at: 13 Feb 2024, 06:50 )

RE: ProtoOAGetPositionUnrealizedPnLReq" and “ProtoOAGetPositionUnrealizedPnLRes

PanagiotisCharalampous said: 

Hi there,

The libraries are not up to date, therefore for some messages you would need to write the code yourself.

Best regards,

Panagiotis

I have imported the latest https://github.com/spotware/openapi-proto-messages/blob/main/OpenApiModelMessages.proto which is supposed to pull in the necessary functionality but continually getting errors as the call from server is failing. i have run various decryptions to check whether data is valid but having no valid reference to what the Descriptor Section that works so errors continue, fyi i have written the code for various other functions without fail but the above doesn't even display in the initial OpenApiModelMessages.py.

Please advise the way forward is. FYI- i have written a bit of code that fetches the price at buy/sell against the bid/ask to get profit or loss but it is no way as efficient as what ProtoOAGetPositionUnrealizedPnLReq would be so i would like to use ProtoOAGetPositionUnrealizedPnLReq function instead. Please forward relevant info regarding ProtoOAGetPositionUnrealizedPnLReq or even how to successfully implement https://github.com/spotware/openapi-proto-messages/blob/main/OpenApiModelMessages.proto. FYI - i have converted it to python script using protoc and imported it correctly

 

please advise soonest

 

thank you


@ultmnc

ultmnc
16 Oct 2023, 21:00

RE: I asked for ProtoOASubscribeLiveTrendbarReq M1, sometimes if get M2

jon.slater said: 

Good day.

Are you able to assist me with the ProtoOASubscribeLiveTrendbarReq M1 python code please as i am unable to find any reference to it.

 

Your assistance would be greatly appreciated

Regards

Ultmnc

 


@ultmnc

ultmnc
09 Oct 2023, 13:19 ( Updated at: 09 Oct 2023, 13:33 )

RE: OHLC Live data

PanagiotisChar said: 

Hi there,

Use ProtoOASubscribeLiveTrendbarReq to subscribe to live trendbar data.

Are you able to show me sample code using ProtoOASubscribeLiveTrendbarReq and ProtoOASubscribeLiveTrendbarRes with 1 second data as i am getting stuck here please

Your responses are appreciated

 

regards

 


@ultmnc