Menu

Introductions

2013-02-04
2020-06-18
  • Paul Francis

    Paul Francis - 2013-02-04

    Hi,

    Feel free to post here if you have any questions or issues associated with the code or using the API.

    Cheers,

    Paul.

     
  • Dolly

    Dolly - 2016-08-04

    Hi Paul,

    I have spark's credentials for 14 day's trial version.

    I downloaded source file for SparkApiSDK_v1.2.0 from Codeproject

    I opened its .sln file in visual studio 2015.

    As I have never worked on WEb API projects, I am unable to understand its code.

    Will you please give me instructions for using this web Api?

    Thank you.

     
  • Dolly

    Dolly - 2016-08-09

    Hi Paul,

    I am facing problems to access Live Market..

    When I enter my credentials in login form (which works perfectly in my trial version ) It goes in Validate() and returns false and thus I can't establish connection. The message pops up that User name or Password Invalid although I entered valid credentails. It works fine without logging In while selecting 'Replay'.

     

    Last edit: Dolly 2016-08-09
  • Dolly

    Dolly - 2016-08-10

    Unable to connect with spark API. please help.

     
  • Paul Francis

    Paul Francis - 2016-08-11

    Hi there,

    I suggest you modify the LoadFromFile() method in the SparkAPI.Data.ApiCredentials class, and hard-code your username and password. This will eliminate any reading from file issues you may have.

    For example:

    public static ApiCredentials LoadFromFile()
    {
    return new ApiCredentials() {Username = "TestUsername", Password = "TestPassword"};
    }

     
  • Dolly

    Dolly - 2016-08-11

    Thank u :)

     
  • Dolly

    Dolly - 2016-08-11

    Hi there,
    Now I come to know that it was not the code which was making the problem but the credentials.
    As Iguana spark doesn't allow new credentials to have access on its API.
    Thank you for your help and support.

     
  • Dolly

    Dolly - 2016-08-19

    Hi,

    How can we get value in $ . for Volume .

    for example : for BHP ,
    Daily Volume = 6,541,175
    Avg. Volume = 10,122,761

    and it has Value = $180,194,762.73

    So, how did we get this value?

     
  • Paul Francis

    Paul Francis - 2016-08-20

    Total traded value for the day equals sum of each trade (trade quantity x trade price).

     
  • Paul Francis

    Paul Francis - 2016-08-20

    Total traded value for the day equals sum of each trade (trade quantity x trade price).

     
  • Ali Ahmed

    Ali Ahmed - 2020-06-18

    Hi,

    I have I have spark's credentials for 14 day's trial version and able to login with it in Spark Application and it is working fine.

    I have downloaded the project from Source Forge and I am trying to run SparkWinFormGUI, but I am unable to connect to Spark. A message box appear Connection to live market requires a valid username and password.

    I tried hard coding the credentials like:

    public static ApiCredentials LoadFromFile()
    {
    return new ApiCredentials() {Username = "TestUsername", Password = "TestPassword"};
    }

    Still I am unable to open the connection Spark.Connect() returns false.

     

Log in to post a comment.