You are on page 1of 25

1: Ci t v config Windows & Oracle 9i

- To User trong Database. VD: CTCK2


- Import file ctck_v2.dmp vo DB.
* Tham kho ti liu HuongdanChiTietCaidatInforshowInet1.doc
+ Ci t Windows
+ Config IIS
+ Ci t Oracle 9i (Software Only)
+ Config Oraclce 9i
2: Ci t Service Nhn d liu:
- Service: Broadcast Service Inet Ver 2.0 - Dich vu lay TT.
- Ch chy: Manual. Phi Start li vo cc bui sng trc phin giao dch.
- Tn b ci:
- Config:
+ Copy b ci + file Remote.key ra C\
+ Chy file Install.bat.
+ Thm vo file C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG\machine.config on sau:
<appSettings>
<add key="CTCK_V2.PRV" value="0" />
<add key="CTCK_V2.PRV" value="0" />
<add key="CTCK_V2.UID" value="CTCK2" />
<add key="CTCK_V2.PWD" value="CTCK2" />
</appSettings>
Trong trng hp chy c Ver 1.0 v 2.0 th add nh sau:
<appSettings>
<add key="CTCK.PRV" value="0" />
<add key="CTCK.DSN" value="CTCK" />
<add key="CTCK.UID" value="CTCK" />
<add key="CTCK.PWD" value="CTCK" />
<add key="CTCK_V2.PRV" value="0" />
<add key="CTCK_V2.PRV" value="0" />
<add key="CTCK_V2.UID" value="CTCK2" />
<add key="CTCK_V2.PWD" value="CTCK2" />
</appSettings>
- Note:

onfig on sau:

STS_MarketInfo.XML
General information of market(Current date)
Field Name

Data Type Example

FLOOR_CODE
DATE_NO
TRADING_DATE

string
decimal
dateTime

CURRENT_STATUS
TIME

decimal
string

13
11:00:26

TOTAL_TRADE

decimal

1811

TOTAL_STOCK

decimal

74

TOTAL_QTTY

decimal

1025300

TOTAL_VALUE

decimal

112309440000

ADVANCES

decimal

22

NOCHANGE

decimal

26

DECLINES

decimal

43

02
396
2007-06-20T00:00:00.0000000+07:00

PRIOR_MARKET_INDEX

decimal

313.14

CHG_INDEX

decimal

PCT_INDEX
CURRENT_INDEX
MARKET_INDEX
SESSION_NO

decimal
decimal
decimal
string

0
0
309.89

PRV_PRIOR_MARKET_INDEX
AVR_MARKET_INDEX
AVR_PRIOR_MARKET_INDEX
AVR_CHG_INDEX
AVR_PCT_INDEX
PT_TOTAL_QTTY
PT_TOTAL_VALUE
PT_TOTAL_TRADE

decimal
decimal
decimal
decimal
decimal
decimal
decimal
decimal

309.89
100
100
0
0
25000
2804500000
3

Description

Trading style code:


00: Total of all trading style - IGNORE not used now
01: Periodic matching style - IGNORE not used now
02: Continuous matching style for shares (including Negotiated trading)
03: Continuous matching style for bonds (including Negotiated trading)
Number of trading days since HASTC has started
Current Trading Date
"5" trades during normal trading hours (9-11am)
"15" end of day
"13" end of trading time
- other possible value --> IGNORE not used now
Time of last information update
Number of trades done for all securities
- when FLOOR_CODE = 02, it means shares
- when FLOOR_CODE = 03, it means bonds
Total kinds of shares or bonds that was actually traded for the day
including negotiated trading. This will only be sent after 11am. Before that,
the number will be zero.
- when FLOOR_CODE = 02, it means shares
- when FLOOR_CODE = 03, it means bonds
Total quantity of shares or bonds that was actually traded for the day
including negotiated trading. This will only be sent after 11am. Before that,
the number will be zero.
- when FLOOR_CODE = 02, it means shares
- when FLOOR_CODE = 03, it means bonds
Total value of shares or bonds that was actually traded for the day
including negotiated trading. This will only be sent after 11am. Before that,
the number will be zero.
- when FLOOR_CODE = 02, it means shares
- when FLOOR_CODE = 03, it means bonds
Total kinds of shares or bonds that was increased their price for the day
including negotiated trading.
- when FLOOR_CODE = 02, it means shares
- when FLOOR_CODE = 03, it means bonds
Total kinds of shares or bonds that was not changed their price for the
day including negotiated trading.
- when FLOOR_CODE = 02, it means shares
- when FLOOR_CODE = 03, it means bonds
Total kinds of shares or bonds that was decreased their price for the
day including negotiated trading.
- when FLOOR_CODE = 02, it means shares
- when FLOOR_CODE = 03, it means bonds

- Within trading day, This is the last calculated index.


- In the end of trading day, This is previous day's closing index.
- Any shares or bonds that were actually traded for the day is used for
calculating index.
- Within trading day, This is the point change in the index against the last
calculated index.
- In the end of trading day, This is the point change in the index against
the previous day's closing index.
- Within trading day, This is the percent(%) change in the index against
the last calculated index.
In the end of trading day, This is the percent(%) change in the index
against the previous day's closing index.
IGNORE not used now
Current market index
IGNORE not used now
The pre-prior index
- Within trading day, This is the pre-prior calculating index
In the end of trading day, This is the pre-prior day's closing index.
IGNORE not used now always equals 100
IGNORE not used now always equals 100
IGNORE not used now
IGNORE not used now
Total quantity of Negotiated trades
Total value of Negotiated trades
Total Negotiated trades

STS_StocksInfo.XML
Contain information of stocks which is trade on trading date (Current date)
Field Name
STOCK_INFO_ID
TRADING_DATE

Data Type Example


Decimal
3013
2007-06-20T00:00:000000000+07:00
DateTime

TIME

String

STOCK_ID
CODE

Decimal
String

STOCK_TYPE

Decimal

TOTAL_LISTING_QTTY
TRADING_UNIT

Decimal
Decimal

143006052
100

LISTTING_STATUS

Decimal

ADJUST_QTTY

Decimal

33001396

10:58:01

881
ACB

REFERENCE_STATUS

Decimal

ADJUST_RATE
DIVIDENT_RATE

Decimal
Decimal

0
0

STATUS
TOTAL_ROOM

Decimal
Decimal

0
0

CURRENT_ROOM
BASIC_PRICE

Decimal
Decimal

0
149600

OPEN_PRICE

Decimal

150000

CLOSE_PRICE
CURRENT_PRICE
CURRENT_QTTY

Decimal
Decimal
Decimal

146200
149600
0

HIGHEST_PRICE
LOWEST_PRICE

Decimal
Decimal

150000
145000

BEST_OFFER_PRICE

Decimal

146200

BEST_BID_PRICE

Decimal

146000

CEILING_PRICE

Decimal

164500

FLOOR_PRICE
TOTAL_OFFER_QTTY
TOTAL_BID_QTTY

Decimal
Decimal
Decimal

134700
218300
62800

BEST_OFFER_QTTY

Decimal

1300

BEST_BID_QTTY
PRIOR_PRICE
PRIOR_CLOSE_PRICE

Decimal
Decimal
Decimal

4000
146200
149400

MATCH_PRICE
MATCH_QTTY
DELETED
DATE_MODIFIED
MODIFIED_BY
CREATED_BY
NAME
PARVALUE
MATCH_VALUE

Decimal
Decimal
Decimal
DateTime
String
String
String
Decimal
Decimal

146200
500
0

FLOOR_CODE
IS_CALCINDEX
IS_DETERMINECL
DATE_NO
OFFER_COUNT
BID_COUNT

String
Decimal
Decimal
Decimal
Decimal
Decimal

AVERAGE_PRICE
INDEX_PRICE
PREV_PRIOR_PRICE
YIELDMAT
PREV_PRIOR_CLOSE_PRICE
NM_TOTAL_TRADED_QTTY
NM_TOTAL_TRADED_VALUE

Decimal
Decimal
Decimal
Decimal
Decimal
Decimal
Decimal

147500
146200
145000
0
0
52400
7729140000

PT_MATCH_QTTY
PT_MATCH_PRICE
PT_TOTAL_TRADED_QTTY
PT_TOTAL_TRADED_VALUE
TOTAL_BUY_TRADING_QTTY
BUY_COUNT
TOTAL_BUY_TRADING_VALUE
TOTAL_SELL_TRADING_QTTY
SELL_COUNT
TOTAL_SELL_TRADING_VALUE

Decimal
Decimal
Decimal
Decimal
Decimal
Decimal
Decimal
Decimal
Decimal
Decimal

0
0
0
0
52400
126
7729140000
52400
126
7729140000

TOTAL_TRADING_QTTY

Decimal

52400

TOTAL_TRADING_VALUE

Decimal

7729140000

QLGD01
C phiu Ngn hng TMCP Chu
10000
0
02
1
1
143
258
89

BUY_FOREIGN_QTTY

Decimal

BUY_FOREIGN_VALUE

Decimal

SELL_FOREIGN_QTTY

Decimal

SELL_FOREIGN_VALUE
REMAIN_FOREIGN_QTTY
PT_YIELDMAT

Decimal
Decimal
Decimal

0
0
0

Current date)
Description
ID of a table in our Database. You can ignore it.
- It is The current trading date.
The time when the last trade was done of this security. Even if current trading date
there no trade, this field still have a value of previous trading date.
- The format is HH:MM:SS.
- The ID of this security in our system. It is unique.
- It is a automatical increasing number.
- Both of STOCK_ID and CODE are primary identifier.
The three alphabet code for this security. It is unique.
Kind of this security:
- 1: Bonds
- 2: Shares
- 3: Fund certifications
- 4: Futures ( IGNORE not used now)
- 5: Options ( IGNORE not used now)
The total volume of all Shares are listing on HASTC. (It is not the number of kinds
of security).
In some case It is not as same as previous trading date. For example: A new
company is listed on HASTC, this field will be add the volume of Shares of new
company.
It is not scaled.
Trading lot (100 for shares, 100 for bonds)

Listing status of this security.Referring to the events affects to total listing-oustanding


QTTY of this security:
- 0: Normal
- 1: New listing (remain 1 until first trade done for this security)
- 2: De-listing (Internal status, If this security is de-listing, will not appear in this XML
file)
- 3: Increased capital (ex: shares splitting, issue right )
- 4: Reduced capital (backup status, IGNORE not used for now)
- 5: Waiting for execute 3 and 4 status.
* 3 and 4 status will appear only on the first trading date when this security is trading
without right in 3 and 4 status. On the next trading, this field's value is set to 5 and
remain 5 until the day of executing 3 and 4 status right. Then It is set to 0.
The adjusting volume of this security (in case of splitting, issueing rights):
- In case of LISTTING_STATUS = 1 or 2. This field is the total volume of shares of
this security.
- In case of LISTTING_STATUS = 3 or 4. This field is the increasing or decreasing
volume of shares of this security.

Refer to the events which could be affected to price of securities


- 0: Normal
- 1: devident, couponds
- 2: Issue rights
- 3: Bonus shares
- 4: Stock splitting
- 5: Stock Merging
- 6: Stock chronic
Adjusting rate when REFERENCE_STATUS <> 0
Adjusting rate of devident when REFERENCE_STATUS = 1
Refer to the stock status
- 0: normal.
- 1: Temporary suspension from trading (within trading session).
- 2: Suspension from trading for multiple trading dates.
- 3: be serveilanced.
- 4: be warned.
- 5: Share holders meeting.
IGNORE not used now (always="0")
- Remaining room (total volume of securities foreign investors can still buy).
- Because of the room is calculated by a percentage number (%) multiply by Total
volume of shares of this security, so this field can be a decimal number. It's alright
because the TRADING_UNIT is 100.
- It is not scaled.
also called as reference price (equal to the average price of the last trading day)
The price of first trade
If there is no trade done of this security on trading day, It is the first trade's price of
previous trading day.
The close price
If there is no trade done of this security on trading day, It is the close price of
previous trading day.
IGNORE not used now)
IGNORE not used now)
- Highest price was done only for continuous trading.
- CURRENT_PRICE is meaningless. So there is no problem if HIGHEST_PRICE is
lower than CURRENT_PRICE.
Same as HIGHEST_PRICE
- Best offer price
- if no one buy this security, this field will be missing.
- Best bid price.
- If no one sell this security, this field will be missing.
CEILING_PRICE is 10% higher than BASIC_PRICE(reference price).
BASIC_PRICE is different from CLOSE_PRICE.
FLOOR_PRICE is 10% lower than BASIC_PRICE(reference price). BASIC_PRICE
is different from CLOSE_PRICE.
the total number of shares on the offer side of the order book
the total number of shares on the buy side of the order book
- The best offer volume.
- If no one buy this security, this field will be missing.

- The best bid volume.


- If no one sell this security, this field will be missing.
The price of last trade. It is not including negotiated deal.
The close price of previous trading day
- Matching price.
- CURRENT_PRICE is meaningless.
- At matching time, our system check all unmatched orders including best bid and
best offer to generate MATCH_PRICE and MATCH_QTTY.
- this field is 0 if offers can not match with bids.
Same as MATCH_PRICE

Internal use only. You can ignore them.


Name of listing company
Par values of this security (share: 10000VND; bond 100.000 VND)
IGNORE not used now
IGNORE not used
If this field is 1, this security is used for calculating HASTC 's index
IGNORE not used now
The number of trading dates from the listing trading date
Count of offer on active order sheet within trading date
Count of bid on active order sheet within trading date
- The average price of all trade have been done, not including negotiated deals.
- It only has value in the end of trading date.
- AVERAGE_PRICE = Total value/total quantity of all matched offers
The price of the last trade when calculating HASTC's index
The price of the trade was done just prior to the last trade
Yeild to maturity of bonds
The price of the trade was done just prior to the close trade
Total traded QTTY (just continuous trade)
Total traded values (just continuous trade)
- The last putthrought quantity. Only for negotiated deals
- MATCH_PRICE is not incleding negotiated deals.
Same as PT_MATCH_QTTY
Same as PT_MATCH_QTTY
Same as PT_MATCH_QTTY
total buy quantity of all offers.
count of buy orders
Total buy values
Total sell quantity
count of sell orders
total sell value
total trading quantity (the cumulative volume for the day for the security), both
continuous and putthought
total trading values (the cumulative value for the day for the security), both
continuous and putthought

buy quantity of foreign investors(the cumulative


volume of foreign investors for the day for the
security)
Buy values of foreign investors (the cumulative value of foreign investors for the day
for the security)
sell QTTY of foreign investors(the cumulative volume of foreign investors for the day
for the security)
sell values of foreign investors (the cumulative value of foreign investors for the day
for the security)
The remaining QTTY foreign investor can buy
Yeild to maturity of bonds(only for negotiated deal)

STS_TOP3_PRICE_A.XML
3 best price of continuous trading style. Not including negotiated trades
Note: If a security has no trade done at the moment export this file, The Information of the security
Field Name
STOCK_ID
TRADING_DATE
B_ORD_QTTY_3
B_ORD_PRICE_3
B_ORD_QTTY_2
B_ORD_PRICE_2
B_ORD_QTTY_1
B_ORD_PRICE_1
S_ORD_PRICE_1
S_ORD_QTTY_1
S_ORD_PRICE_2
S_ORD_QTTY_2
S_ORD_PRICE_3
S_ORD_QTTY_3

Data Type
Decimal
DateTime
Decimal
Decimal
Decimal
Decimal
Decimal
Decimal
Decimal
Decimal
Decimal
Decimal
Decimal
Decimal

g style. Not including negotiated trades


done at the moment export this file, The Information of the security is missing in this file.
Example
881
2007-08-01T00:00:00.0000000+07:00
5000
118500
100
118600
6500
119000
119600
2600
119800
200
119900
1900

on of the security is missing in this file.


Description
M Chng khon
Ngy giao dch
Khi lng t mua ti mc gi mua tt th 3
Mc gi mua tt th 3
Khi lng t mua ti mc gi mua tt th 2
Mc gi mua tt th 2
Khi lng t mua ti mc gi mua tt nht
Mc gi mua tt th nht
Mc gi bn tt th nht
Khi lng t bn ti mc gi mua tt th nht
Mc gi bn tt th 2
Khi lng t bn ti mc gi mua tt th 2
Mc gi mua tt th 3
Khi lng t bn ti mc gi mua tt th 3

STS_TOP3_PRICE_B.XML
3 best price of continuous trading style. Only for negotiated trades
Note:
- If a security has no trade done at the moment export this file, The Information of the security is m
- For a security, It may appears maximum 3 times in this file.
Field Name
STOCK_ID
TRADING_DATE
ORDER_QTTY_SELL
ORDER_PRICE_SELL
YIELDMAT_SELL
ORDER_QTTY_BUY
ORDER_PRICE_BUY
YIELDMAT_BUY

Data Type Example


Decimal
881
DateTime
2007-08-01T00:00:00.0000000+07:00
Decimal
5000
Decimal
118500
Decimal
Decimal
100
Decimal
118600
Decimal

ation of the security is missing in this file.


Description
M Chng khon
Ngy giao dch
Khi lng t bn ti mc gi cho bn tt nht
Mc gi cho bn tt nht
Li sut tri phiu cho bn.
Mc gi cho mua tt nht
Khi lng t mua ti mc gi cho mua tt nht
Li sut tri phiu cho mua.

STS_Orders.XML
Storage book quotes of market in trading day (Current date)
Ch cha lnh ca 1 CTCK
Field Name
FLOOR_CODE
ORDER_NO
ORDER_DATE
ORDER_TIME
MEMBER_ID
ACCOUNT_ID

Data Type
String
String
Datetime
String
Decimal
Decimal

Example
02
200607B000001
2007-06-20T00:00:00.0000000+07:00
09:00:02:000
41

STOCK_ID

Decimal

2242

ORDER_TYPE
PRIORITY

Decimal
Decimal

1
1

OORB

Decimal

NORP

Decimal

NORC
BORE
AORI

Decimal
Decimal
Decimal

2
1
1

SETTLEMENT_TYPE Decimal

DORF

Decimal

ORDER_QTTY

Decimal

2000

ORDER_PRICE

Decimal

246400

STATUS

Decimal

QUOTE_PRICE

Decimal

246400

QUOTE_TIME

Decimal

QUOTE_QTTY
ACCOUNT_NO
BROKER_ID
TELEPHONE
SESSION_NO
SETTLE_DAY
AORC
YIELDMAT
CODE_TRADE

Decimal
String
Decimal
Decimal
String
Decimal
Decimal
Decimal
String

2000
003C201991
1006
0

1
0
03

rent date)
Description
IGNORE not used
Unique number to identify the order
Current date
Order time
The unique ID ( IGNORE not used)
IGNORE not used now
- These are numeric identifiers for the securities. It's automatically
generated when a new security is listed.
Order's type:
- 0: Limit Order.
- 1: Market Order.
- 2: ATO Order.
- 3: AllOrNone Order.
Note: For now, There is only Limit Order.
IGNORE not used
Buy or Sell Order
-1: Buy Orders
- 2: Sell Order
Normal Order or Negotiated Order:
1. Normal Order
2. Negotiated Order
Modified status:
- 2: normal
- 5: origin orders (if orders changed)
- 6: wait to be confirmed
- 7: modified orders
- 8: Cancellled orders
- 9: be matched
- 10: quote
- 11: deal (putthought)
IGNORE not used
IGNORE not used
- 0: billateral settlement
-1: multilateral settlement
- 2-> 15: trade by trade settlement (T+n)
-1: domestic
-2: foreig Investor
* Quantity in order
- Numbers are not scaled
- price in order
- Numbers not scaled

Status order ( for negotiate order)(using for mornitoring only)


- 1: normal orders
wait to be cancelled: nun
Watting for negotiate order - CTT
Negotiated order- DTT
Watting for confirm - CXN
Confirmmed trading - DXN
Watting for confirmation to cancel - CXH
Status order of normal trading
None effect
Normal
Watting for check
Price of Wait Matching
Quotes are applicable only for negotiated trading. They occur when the
counter-party is not identified.
When the counter-party is identified, it is called an order.
For continuous matching method, there are only orders. No quotes.
Time of order wait matching
Quotes are applicable only for negotiated trading. They occur when the
counter-party is not identified.
When the counter-party is identified, it is called an order.
For continuous matching method, there are only orders. No quotes.
Volume order wait matching
Quotes are applicable only for negotiated trading. They occur when the
counter-party is not identified.
When the counter-party is identified, it is called an order.
For continuous matching method, there are only orders. No quotes.
IGNORE not used
IGNORE not used
IGNORE not used
IGNORE not used
The day of settlement (trade by trade only)
IGNORE not used
Yield to Maturity only for bonds
HASTC's memberID of Securities company

STS_Trading_Result.XML
Field Name

Data Type Example

FLOOR_CODE
TRADING_DATE
CONFIRM_NO
B_ORDER_NO
B_ORDER_DATE
S_ORDER_NO
S_ORDER_DATE

String
Datetime
String
String
Datetime
String
Datetime

02
2007-04-09T00:00:00.0000000+07:00
090407B000003
090407B000007
2007-04-09T00:00:00.0000000+07:00
090407B000098
2007-04-09T00:00:00.0000000+07:00

B_NEXT_CNFRM Decimal

S_NEXT_CNFRM
MATCH_TIME
MATCH_DATE
B_TRADING_ID
S_TRADING_ID
B_CODE_TRADE
S_CODE_TRADE
STATUS
SEC_CODE
QUANTITY
PRICE
B_ACCOUNT_NO
S_ACCOUNT_NO

Decimal
String
Datetime
Decimal
Decimal
String
String
Decimal
String
Decimal
Decimal
String
String

0
09:00:56:002
2007-04-09T00:00:00.0000000+07:00
670
722
03
06
2
SSI
4000
230000
003C104898
006C003830

SETT_TYPE
SETT_DATE

Decimal
Decimal

B_PC_FLAG

String

S_PC_FLAG
NORP

String
Decimal

C
1

FIS's Description
Trading code
01: Continuous trading
02: Negotiated trading
Ngy giao dch
S xc nhn lnh khp
S hiu lnh bn mua
Ngy t lnh bn mua
S hiu lnh bn bn
Ngy t lnh bn bn
S xc nhn lnh khp tip theo ca bn mua trong trng
hp lnh mua c khp vi nhiu lnh bn (= 0: khng c)
S xc nhn lnh khp tip theo ca bn bn trong trng hp
lnh bn c khp vi nhiu lnh mua (= 0: khng c)
Thi im khp lnh.
Ngy khp lnh
Trading ID ca bn mua
Trading ID ca bn bn
M giao dch ca TVLK t lnh mua
M giao dch ca TVLK t lnh bn
Trng thi lnh khp
M chng khon
S lng giao dch
Gi khp lnh
S ti khon giao dch chng khon ca NT mua
S ti khon giao dch chng khon ca NT bn
Hnh thc thanh ton:
a phng
Song phng
Trade-by-Trade
Ngy thanh ton (i vi hnh thc thanh ton trc tip)
PC Flag ca bn mua
- P: T donh
- C: Mi gii trong nc
- F mi gii nc ngoi
- M: Thnh vin lu k c bit.
PC Flag ca bn bn
- P: T donh
- C: Mi gii trong nc
- F mi gii nc ngoi
- M: Thnh vin lu k c bit.
Giao dch hay tha thun.

You might also like