Jimmy-sha256 / SimpleFX_REST_API

This is a python wrapper to connect to SimpleFX's REST API
3 stars 0 forks source link

fetch_price or simple fetch_ohlcv ? #2

Open kdsull opened 4 months ago

kdsull commented 4 months ago

Many many thanks for this wrapper, which works really well. Shame that most people are satisfied with MT4, which is fine of course but it's no python ! I'm perplexed that Simple do not seem to provide the most simple price function, ie. klines... I tried to use 'symbol_info()', but it seldom updates its price so no use. I'd highly appreciate if there's any way to get this basic info, say for M1, M10 etc. Thank you !

Jimmy-sha256 commented 4 months ago

Hi

Thank you for your email and for your positive feedback on the wrapper. I'm glad to hear it's working well for you. I completely agree that Python offers a lot more flexibility and power compared to MT4, which can indeed feel a bit antiquated.

Regarding your query about retrieving klines (candlestick data) using SimpleFX, unfortunately, the SimpleFX API does not provide klines directly because it relies solely on a REST API rather than websockets. Websockets are typically used for real-time data streams, such as klines, but SimpleFX's API is limited to REST endpoints.

The two endpoints provided by SimpleFX that can provide price information are:

However, these endpoints have limitations, as you mentioned, it doesn't update frequently enough for real-time trading purposes. It only updates the open and close prices for each trade session, which might not be sufficient if you need more granular data like minute-by-minute or ten-minute intervals.

Best regards,

Jimmy_sha256

Sent with Proton Mail secure email.

On Tuesday, 21 May 2024 at 08:17, Kidon Sull @.***> wrote:

Many many thanks for this wrapper, which works really well. Shame that most people are satisfied with MT4, which is fine of course but it's no python ! I'm perplexed that Simple do not seem to provide the most simple price function, ie. klines... I tried to use 'symbol_info()', but it seldom updates its price so no use. I'd highly appreciate if there's any way to get this basic info, say for M1, M10 etc. Thank you !

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

kdsull commented 4 months ago

Thank you again, Jimmy, for your prompt feedback ! It's very kind of you. I now understand why klines are not provided, which again is a shame anyways ... But their WEB interface is so modern and quick which makes me wonder. By the way, do you happen to get their 'signalr' working, which is introduced on their github documentation page ?? This 'price quote from the vendor' is SO essential in order to make ANY setup to work, so I wish there's some detailed, step by step quide to do this. But again, there seems to be so little interest in doing this. Since SimpleFX is in a pretty good position, by providing VAST variety of products and the REST API, I hope they provide some more technical assistance too. But YOU are doing this, on behalf of them, actually !! Many thanks

Jimmy-sha256 commented 4 months ago

You're welcome! I appreciate your kind words. I haven't used SignalR before, as my main development environment is Ubuntu Linux, and SignalR appears to be a Microsoft library.

I haven't used SimpleFX in a couple of years and have no plans for further work on my API repository.

My advice would be to ask ChatGPT how to set up SignalR.

Sent with Proton Mail secure email.

On Thursday, 23 May 2024 at 10:16, Kidon Sull @.***> wrote:

Thank you again, Jimmy, for your prompt feedback ! It's very kind of you. I now understand why klines are not provided, which again is a shame anyways ... But their WEB interface is so modern and quick which makes me wonder. By the way, do you happen to get their 'signalr' working, which is introduced on their github documentation page ?? This 'price quote from the vendor' is SO essential in order to make ANY setup to work, so I wish there's some detailed, step by step quide to do this. But again, there seems to be so little interest in doing this. Since SimpleFX is in a pretty good position, by providing VAST variety of products and the REST API, I hope they provide some more technical assistance too. But YOU are doing this, on behalf of them, actually !! Many thanks

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

kdsull commented 4 months ago

Okidoki ! I think you should feel good about the things you've done REALLY is helping somebody to get started, and I certainly am one of those who's grateful. All the best for your new endeavors, and Cheers !!