$$$ KPO and CZM $$$: referral
Showing posts with label referral. Show all posts
Showing posts with label referral. Show all posts

Saturday, March 30, 2019

StocksCafe API for Stock Data

Note: StocksCafe API is now deprecated and no longer available anymore - updated on 5th July 2020.

Ever since Yahoo abandoned us, we were left stranded without a data source to fetch stock prices. I previously blogged about an alternative - Bye Yahoo Finance! Hi Alpha Vantage! but it has its limitations too. For unknown reasons, sometimes it just doesn't work/return the price of a particular stock code/counter. I suspected that it could be due to the high number of API calls and added additional control such as retrieving the stock price only if we are still owning them but it still wasn't very successful.


As a result, I even modified my google spreadsheet by having a second and third column to re-call the API if it fails. I even have a "Manual" column to fill in the price on my own if all else fails... Yes, it do happen ~.~"

Regular readers will know that we have been using StocksCafe to track the performance of our portfolio and it has released its own API to access stocks data a few months back. I started testing it and found it to be extremely reliable. I no longer need to update the stock price manually! Unfortunately, it is only limited to Friends of StocksCafe (paid users).

Evan's (founder and sole developer of StocksCafe) story is pretty interesting and you can read about it here - The True Cost of Being Free. We are called friends because it started out as a donation to keep StocksCafe alive due to the huge licensing cost.

If there is no chance of you becoming a friend, Alpha Vantage is still the way to go. Otherwise, Friends of StocksCafe or potential Friends, the below steps will be very helpful if you are tracking your portfolio using google spreadsheet too (like us):

1. Go to your profile and take note of your API key. There is a limit on your usage so I do not recommend sharing your key - 100 per day, reset at 12 am SGT. You can see how much we have contributed too :)


2. Go to Script Editor in Google Spreadsheet


Open up the relevant Google spreadsheet, go to "Tools" and click on "Script editor".

3. The API documentation can be found here. If you are in IT, this should be familiar to you and you can do a lot more than what I am going to share. Otherwise, it will probably look very foreign/alien to you, so you can just copy and paste the below code snippet into the newly opened up window/tab.

4. Modify the code slightly by replacing your username, API key, the sheet name and the relevant columns for the function - dailyUpdateStocksCafeColumn() or dailyUpdateStocksCafeColumn2(). Do not modify the rest of the code or do it at your own risk!

5. Go to Current Project's Trigger from Edit.


6. Click on Add Trigger. The project trigger should be empty. Note that the trigger has a 0% error rate.


7. Specify the function you want to run, it should either be dailyUpdateStocksCafeColumn or dailyUpdateStocksCafeColumn2. Next, change the event source to be Time-driven, day timer, the time you will like it to be updated and proceed to save it. You can reference mine below.


What this does is on a daily basis, at the specified time, the function will be called/ran automatically and the specified price column will be updated with the end of date stock price from StocksCafe. Updating the stocks prices once a day will ensure that we are keeping within the limits of the API usage.

As of this moment, StocksCafe has data for SGX, HKEX, KLSE and USX so it is not just limited to SGX stocks data. Evan was kind enough to provide a special discount for KPO and CZM readers! You can sign up using our referral link and see if it suits you first before deciding if you want to contribute.

Current Price:
- Monthly Plan: SGD 4.9 a month
- Annual Plan: SGD 39 a year (SGD 3.25 a month or >30% OFF)
- 7 Years Plan: SGD 215 for 7 years (SGD 2.56 a month or >45% OFF)

KPO Referral Price:
- Monthly Plan: SGD 3.9 a month (~20% OFF)
- Annual Plan: SGD 35 a year (~SGD 2.90 a month or ~40% OFF)
- 7 Years Plan: SGD 195 for 7 years (~SGD 2.32 a month or ~52% OFF)

Benefit: You get an excellent portfolio tracker and I get a follower? lol. If you ever become a "Friend of StocksCafe", I get a 20% commission! At this price point (~$2+ per month - about 2 cups of kopi/teh or $3/4+ per month - 1 cai peng/meal), I think it is a bargain for an intelligent portfolio tracker, access to quality data and many other features.

Anyway, hope this has helped you too :)

Do like any of the following for the latest update/post!
1. FB Page - KPO and CZM
2. Twitter - KPO and CZM
3. Click here to subscribe using email :)
4. Instagram - KPO_and_CZM (Did you see those delicious food photos to the right --> Unfortunately, you can't see it on mobile.)

Saturday, April 28, 2018

ShopBack Visa Promotion for Cathay Cineplexes This Weekend - 50% Up to $10!

If you have not heard of ShopBack, you have been missing out lots of cashback opportunities! What is ShopBack? It is a website/mobile application which directs traffic to the relevant online shops such as Lazada, Expedia, etc. The merchants reward them with a commission for referring you to shop on their site and instead of keeping the rewards all to themselves, they share it with you! Once you have accumulated at least $10 in the account, you will be able to redeem it and transfer the cashback to your bank account!

ShopBack is having a Visa flash sale this weekend (Valid from 27 Apr 2018, 0:00 - 29 Apr 2018, 23:59)!


The most attractive offer is the one for Cathay Cineplexes where one can get 50% cashback up to $10! This is perfect timing because we can all catch the long-awaited Marvel Studios' Avengers: Infinity War movie at a much cheaper rate! Not forgetting Cathay has the best sweet popcorn (genuinely our opinion, nothing is sponsored here) as compared to the rest. lol.


Terms and Conditions to take note:
- Valid for first 500 daily orders only. Once the limit is reached, a page banner will be displayed as fully redeemed.
- Valid only for purchases made via this campaign page and payments made with Visa card
. (Afterall, this is a Visa flash sale right)

If you are already an existing ShopBack user, simply head over to https://www.shopback.sg/visa.

If you are new to ShopBack, you might want to consider using our referral link where we will each get $5 after you spent $25. Once again this is the perfect opportunity because purchasing 2 tickets ($13 x 2 + $1.50 = $27.50) will mean you will be eligible to withdraw $15 cashback almost immediately!


Our Referral Link: http://bit.ly/kposhopback (thank you in advance!)

Now you know what CZM and I will be doing tomorrow :)


Better catch it this weekend because there will be lots of friends/colleagues spoiling it on Monday. Hahahaha.

Do like any of the following for the latest update/post!
1. FB Page - KPO and CZM
2. Twitter - KPO and CZM
3. Click here to subscribe using email :)
4. Instagram - KPO_and_CZM (Did you see those delicious food photos to the right -->)

Friday, January 12, 2018

StashAway Referral Link for Our Readers

A couple of readers have actually contacted me and ask for our StashAway referral link because we have motivated them to start investing. Unfortunately, I have been rejecting/turning down their nice offers because sharing our referral link would reveal our real identities and we prefer to keep them hidden as compared to saving a few dollars in fees.

I contacted StashAway and they were kind enough to entertain me. So I am proud to announce that we have a referral link for our readers! You no longer have to go around asking friends/colleagues for one (my suggestion when I turned them down).


Signing up through our referral link (you will need to click on the green button "Get up to $10K Managed for Free" to signup) will provide you the exact same offer as any other referral - SGD $10,000 free management for 6 months.


What do we get in return? Nothing :) This is a referral page specially created for our readers and is not linked to our actual StashAway account so we will not be enjoying the benefit of the referral programme. Honestly, that is unfortunate but the purpose of the blog is not for us to get referrals and minimize the fees. It is to motivate others to start investing, have goals in life and work towards them and most importantly, lead a happy life with their other half. We are glad to see some of that happening.

Here you go: KPO and CZM Referral Link

Do like any of the following for the latest update/post!
1. FB Page - KPO and CZM
2. Twitter - KPO and CZM
3. Click here to subscribe using email :)

Sunday, May 28, 2017

"Free" $105 Cash from Shopback (Cashback Site) + $20/$50 Capitaland Vouchers from Amex

If you have not heard of ShopBack, you have been missing out lots of cashback opportunities! If you know about it, good for you but do you know about "cashback" opportunities from Capitastar and Frasers Rewards?

What is ShopBack? It is a website/mobile application which direct traffic to the relevant online shops such as Lazada, Expedia, etc. The merchants reward them with a commission for referring you to shop on their site and instead of keeping the rewards all to themselves, they share it with you! Once you have accumulated at least $10 in the account, you will be able to redeem it and transfer the cashback to your bank account!

(Promo ends in 3 days time as of 28/05/2017)
(Update - Promo has been extended!! Ending on 14 Jun 2017!)
ShopBack has partnered with Amex once again to offer you cashback and Capitaland voucher! The previous promotion/tie-up was back in December 2016. You will be eligible as long as you are not holding either the Amex CapitaCard or the Krisflyer credit card.

Below is KPO's ShopBack transactions:

I have a total of $89.67 worth of cashback in my account and has successfully withdraw $25.60 from ShopBack. This is not a scam unlike those SIA anniversary free tickets your parents/aunts/uncles have been sharing on FB or mandarin speaking police that might have called you.

Let's get started! If you have an account, skip to Step 2.

Step 1: Sign up and create an account (KPO will be grateful for treating him lunch if you use his referral link) You will be awarded $5 cash in your account! I will be getting $5 too once you successfully make your first cashback redemption.


ShopBack referral link: HERE

Step 2: Sign in to your account and proceed to the Amex Promo Page. Please read the T&Cs first! KPO would like to thank you for using his referral link by copy and pasting the full T&Cs below:

Once your card is approved, your $50 Cashback will be redeemable within 60 days.
In order to successfully qualify for Cashback, please ensure that:
  • You've clicked through this page to American Express and completed your application within 1 window session.
  • For every card application, you've clicked through via ShopBack on the specific card deal on this page to American Express and applied for the same card within 1 window session. This means that every card application requires a new clickthrough via ShopBack on this page. 
  • You've applied for a card via ShopBack before 31 May 2017, 23:59.
  • You've submitted the form within 5 days of applying the card.
  • Your card is approved by 16 July 2017.
  • You've successfully completed all steps 1-3 on shopback.sg/amex-promo page.
$50 Cashback Terms & Conditions
  • Valid only on card applications via ShopBack from 26 May, 0:00 - 31 May, 23:59. 
  • Valid only on American Express CapitaCard and American Express KrisFlyer Card.
  • $50 Cashback will be fulfilled by ShopBack.
  • A ShopBack Member can apply for multiple cards. $50 Cashback will be given for each successful card application.
  • Cashback will be tracked in your ShopBack account within 5 days after submitting form and redeemable within 60 days.
  • For enquiries on the 12 destinations travel contest, please visit here.
  • ShopBack reserves the right to pause, terminate the promotion without prior notice.

Step 3: You can either apply for the CapitaCard or the Krisflyer credit card by clicking "Apply Now" (from the ShopBack site). KPO's recommendation is that you apply for CapitaCard. The Krisflyer credit card is one of the worst miles card and you cannot do much with the 5k miles. On the other hand, the CapitaCard gives you $20 once you make any purchase (>$1) with the card within the first 6 months. You can get an additional $30 + $20 if you spend $888 on the first 6 months instead (spend on Capitaland shopping malls, Fraser not eligible). However, the T&Cs did state that you can apply for multiple cards and get $50 cashback for each successful card. $100 for two credit card applications, why not?


Step 4 (Important!): Fill in the Amex credit card application form. Once you reach the "Thank You" page, take note of your application reference number. KPO will recommend taking a screenshot as well. After that, proceed to this Google Form page to submit your reference number and ShopBack email within 5 days!

Enjoy the "free" cashback + voucher! KPO used the Capitaland vouchers to treat CZM to some good food in one of the Capitaland shopping mall.

Note: KPO and CZM is vested in Capitaland and Capitaland Mall Trust. lol