Ben Chuanlong Du's Blog

And let it direct your passion with reason.

Some Terminologies in Business Investment

Stock Ticker

A stock ticker is a report of the price for certain securities, updated continuously throughout the trading session by the various stock exchanges. A "tick" is any change in price, whether that movement is up or down. A stock ticker automatically displays these ticks, along with other relevant …

Generating YYYYMM Formatted Dates Using Python

import monthdelta as md
import datetime as dt
import math as math

def quarter(month):
    return int(math.ceil(month/3.0))
#end def

d0 = md.date.today()
dates = [d0 + md.monthdelta(i) for i in range(1, 20)]
yyyymms = [d.year*100 + d.month for d in dates]
yymms …