RSS

Configure quickfix\n and stunnel to connect to currenex

I have use quickfix 4.4 and sTunnel for below example to connect to a Currenex demo account. Download the UIDemo project from github. I’m using quickfix\n for c#.

About FIX

FIX is an electronic messaging protocol for financial transactions. The Financial Information eXchange (FIX) is an open, widely used industry standard. More information is available on the FIX protocol website.

Quick fix is an open source application that provide such service as above. So below is my config file setting.

Configuration

1. In quickfix.cfg

[DEFAULT]
ConnectionType=initiator
ReconnectInterval=2
FileStorePath=store
FileLogPath=c:\fixlog
StartTime=00:00:00
EndTime=23:00:00
UseDataDictionary=Y
DataDictionary=FIX44.xml
SocketConnectHost= my external ip address
SocketConnectPort= port to connect to sTunnel in your local pc
ResetOnLogon=Y
ResetOnLogout=Y
ResetOnDisconnect=Y
CheckLatency=N

# standard config elements

[SESSION]
BeginString=FIX.4.4
SenderCompID= Hub FIX Taker ID
Username= Hub FIX Taker ID
Password= Hub FIX Taker Password
TargetCompID=CNX (Name I define in sTunnel config file)
HeartBtInt=20
SocketConnectPort=444
SocketConnectHost= my external ip address
DataDictionary=FIX44.xml

2. In stunnel.conf

[CNX]
client = yes
accept = your local pc external ip : port   eg.(10.160.103.65:444)
connect = Currenex server ip address  eg.(dret-xxx-xxx-xxx.com:444)

3. Build a self-signed pem cert in sTunnel.

createcert1createcert2Click ‘enter’ and your cert is done!!

4. Add 2 lines of code in QFApp.cs as below, which is your hub username and password.

fix2

5. Start your sTunnel service.

6. Run the UIDemo application. And it works!!

fix

 
Leave a comment

Posted by on September 8, 2014 in technical

 

Tags: , , , , , ,

Safra Run Marathon 10km

As Singapore is well known for its marathon, everyone craze for it. I’m not sure what’s the reason behind that but it is quite interesting to try once. So I registered for 10km category with a few bros. Personally, I’m not  the one who like to run, honestly, I would rather prefer other sports than running. Any way, I’ve registered and participated.

This is the first time I participated in a marathon. What worried me the most before the event is that I may fain during the half way. But it turn out better than during the training session. I dont have a good stamina, and may run out of breath. I have to improve on this aspect in order to go for another challenge.

On that day we were late to run. We started 20 min after the gun time. It is quite tired when running the first few km. after that, I think I’m numb for my lower part of my body. Just have to struggle to overcome it and go on.

Finishing the course is the best thing. Although is far behind from other contestants, but is still a sense of happiness, satisfaction that I can complete this thing! All tiredness have disappear, but fill with joy.
Lastly, through this event, I’m able to know my own limits and train for more advance challenges.There are lot of aspects need to be improve. But with this experience, it can encourage me continue to improve. Is a wonderful experience.

 

 

IMG_0928.JPG

IMG_0933.JPG

IMG_0934.JPG

IMG_0932.JPG

 

Below is my ranking   >.<

 run

 

my cert

certificate10km_1

certificate10km_2

 

 
Leave a comment

Posted by on September 5, 2014 in living

 
Video

Ice skating

I’m not a good fan nor a skater. But I was lucky to being able to witness a few who did perform very nicely. As if they were like the doll that is dancing on the music box gracefully. Really nice! It is my first time to see it with my own eyes.

Below video I recorded it. As I think she is best among all contestant.

ice skating

 
Leave a comment

Posted by on September 1, 2014 in living

 

Tags: , , , ,

The secret to being perfected to be a pillar

Really being encourage by this portion of word.

THE SECRET TO BEING PERFECTED
TO BE A PILLAR
Let me now tell you the secret to being solidly perfected to be a strong pillar for the Lord’s move. Certain brothers have been perfected because they have had no concepts of their own. Recently, one brother declared strongly that he only knows to follow the ministry of Brother Lee and to absorb everything of this ministry. There have been others among us who were quite opinionated. They often said, “Brother Lee says such-and-such. Is this right? Is the church right? Just a week ago, I learned about a mistake made by the church.” None of these opinionated ones has yet been perfected. But those who haven been perfected to be pillars are not like this. Even when they see certain mistakes, they forget about them, having no time to waste discussing them. They only desire to soak in all the positive things.
FEASTING ON THE POSITIVE THINGS
According to God’s principle in His creation, in order for anything to grow there is the need for a negative side. Take the example of a chicken. We all appreciate chicken eggs, breasts, and legs, but we certainly do not care for chicken dung, feathers, and bones. Nevertheless, without dung, feathers, and bones, a chicken cannot grow. In order for a chicken to be a chicken, it must have these things. But it is not our portion to eat them. We should enjoy the eggs, the breasts, and the legs, and forget the dung, the feathers, and the bones. If we concentrate on the positive aspects of the chicken, we shall receive much nourishment.
I admit that the church in Los Angeles has made certain mistakes, and I confess that I have made mistakes. The elders can testify of this. Everybody makes mistakes. No one can deny this. I have had to make mistakes in order to grow. These mistakes are my “dung.” If you eat this, you are foolish. I also admit that I have “feathers.” The church in Los Angeles also has had a certain amount of “feathers” and “bones.” However, without these “feathers,” “bones,” and “dung,” neither the church in Los Angeles nor my ministry would be able to exist. Do you intend to gather up the “feathers” and say, “Look! This is the church in Los Angeles. Look! This is what Brother Lee has done. See all these awful ‘feathers.'” If you do this, you will not damage the church in Los Angeles or my ministry, but you will surely damage yourself. To do this is not wise. These who have been perfected to be pillars, who surely are not less intelligent than you, are wise. Their eyes are much clearer than yours. But they refuse to devote their attention to the negative things. They would say, “Although Brother Lee has some ‘dung,’ he has a great many eggs. I don’t care for the ‘dung’ issuing out of his ministryI want to eat all the ‘eggs,’ ‘breasts,’ and ‘legs.’ I have no time to hear about ‘feathers’ and ‘bones.'” Let us follow the example of such brothers to forget the negative things and to feast upon the “eggs,” “breasts,” and “legs.” This is my burden in this message.
Are you in Anaheim as a spy, investigating whether or not Witness Lee has any “dung”? I cannot live without “dung.” To be sure, both “feathers” and “bones” can be found here in Anaheim. The elders have made many “bones.” But I would stand, even dance, upon all the “bones” they have made; I would not be so foolish as to eat them.
Three or four of us knew Brother Nee very intimately. He fully opened himself to us, and we knew his imperfections. But we realized that these imperfections were the “dung” that enabled him to exist. Unlike others, we would not cling to his “feathers,” nor to the “bones” of the “chicken” in Shanghai. If we had done this, we would have sacrificed ourselves. I never suffered such self-inflicted damage. Rather, I enjoyed the fresh, nourishing “eggs,” “breasts,” and “legs” of Brother Nee’s ministry. When a great turmoil was aroused against his ministry, I was not ashamed to say that I was an absolute follower of Brother Nee. I did not care what others said about his mistakes. I only knew how grateful I was to him for the perfection he had rendered to me. I knew the nourishment I had received from him. Even when we are in the New Jerusalem, I shall be able to say that the Lord used Brother Nee to perfect me. Apart from his ministry, I would never be the person I am today.
How foolish it would be for anyone in the church to devote his time to finding “dung” or stuffing his pockets with “feathers,” saying, “This is a ‘feather’ from that ‘chicken’ Witness Lee, and these are the ‘bones’ of the church in Anaheim. Don’t you know that the church in Anaheim has made mistakes?” If this is your intention, you are wasting your time. You are in the wrong place. Neither Witness Lee nor the church in Anaheim would pay you for exposing them. But do not think that we are afraid of being exposed. Whatever Witness Lee is, he is what he is. Whether the church is genuine or not, the church is what the church is. Neither the church in Anaheim nor my ministry is afraid of exposure. On the contrary, we appreciate it. But what will you gain by exposing us?

From life study of genesis msg 88.

 
Leave a comment

Posted by on April 11, 2014 in living, Word of the minsitry

 

Tags: ,

Unrequited ….

A mighty pain to love it is,

And ’tis a pain that pain to miss;

But of all pains,

the greatest pain It is to love,

but love in vain.

~ Abraham Cowley

 
Leave a comment

Posted by on March 24, 2014 in living, Poem

 

Tags: , ,

Gospel meeting on 15-Feb-2014

Gospel meeting! Announcing the good news to the unbelievers that there is hope although man fell after man’s creation under Satan’s plot. But God promise to rescue man, recover them and bringing them back to eat the tree of life! How wonderful that there is hope for man!

After man fell from Satan’s scheme, man spirit was deaden, soul corrupted and polluted, body changes in nature, becoming flesh. Man was a broken vessel in God’s eye which cannot contain God and fulfill God’s purpose.

But hallelujah! God came in, bringing redemption to man, enable man to have a way to come back to God. Through the man Jesus, dying on the cross, buried, raised on the third day as the life giving spirit to enter into man’s spirit. Man’s spirit was enliven again to contact God, to enjoy God, to seek God, and worship God.

Zechariah 12:1 The burden of the word of Jehovah concerning Israel. Thus declares Jehovah, who stretches forth the forth the heavens and lays the foundations of the earth and forms the spirit of man with him.

Jehovah created the heaven is for the earth, the earth is for man, and man is for God!

As this meeting is some what special because it is the first time everyone have to speak in a group. Presenting the truth and content in a sequential and progressing way with a mind map, even the gospel friends! How wonderful and encourage to see the friends speaking the truth, presenting it to all! The seed of the truth has been sown into them! I believe they themselves will first be save. Presenting it in a team enable every members to function according to their measure, giving everyone the opportunity to exercise to speak.

What a memorable gospel meeting!!!!

IMG_0444IMG_0445IMG_0446IMG_0447IMG_0450IMG_0440IMG_0448IMG_0449IMG_0452IMG_0451

 
Leave a comment

Posted by on February 22, 2014 in living, Word of the minsitry

 

Tags: , , , ,

Preserve me, O God

  • Thank you Lord for your sovereignty,
    though I may not know your arrangement,
    though I doubted you, hated you, fight with you,
    but you did not let me go,
    striping my expectation and my naturalness.
    though it is not a clear sky to me,
    But you are willing to allow it to happen.
  • O I’m only a little man,
    Lord, you are my Lord of Lords, my king of kings,
    how blessed your presence still lingering with me,
    Spirit filling me wholly, kept me refuge in You,
    and build-ed up with the members of your Body.
  • I only desire you, love you,
    No other love is greater than your love,
    only your love is trustworthy,
    only you I offer my best love, my true love.
    no good have I beyond you,
    all my delight is in you.

   Preserve me, O God

  • Preserve me, O God, for I take refuge in You.
    I say to Jehovah, You are my Lord;
    Preserve me, O God, for I take refuge in You.
    I say to Jehovah, You are my Lord.
  • You are my Lord, You are my Lord;
    No good have I beyond You;
    You are my Lord, You are my Lord;
    No good have I beyond You.
  • As for the saints who are on the earth,
    They are the excellent;
    All my delight is in them.

(Psa 16:1-3)

Preserve me, O God

 
Leave a comment

Posted by on January 26, 2014 in living

 

Tags: ,

 
Follow

Get every new post delivered to your Inbox.