Vnstock Logo

Bảng giá giao dịch

Cập nhật lần cuối:

Thảo luận

Nguồn dữ liệu VCI

Gợi ý

Các hàm tra cứu thông tin trong mục này cho phép bạn truy xuất dữ liệu giá giao dịch và thông tin của một mã chứng khoán cụ thể theo thời gian thực (hoặc dữ liệu giao dịch gần nhất khi chưa đến phiên giao dịch tiếp theo). Mô tả dữ liệu trả về dưới đây phản ánh dữ liệu trả về từ nguồn dữ liệu mặc định `VCI`.

Gọi hàm

stock.trading.price_board(symbols_list=['ACB'])

hoặc nhiều mã chứng khoán theo danh sách

stock.trading.price_board(symbols_list=['VCB','ACB','TCB','BID'])

Tham số

  • symbols_list: Danh sách các mã chứng khoán cần truy xuất dữ liệu. Định dạng dữ liệu đầu vào là Python List. Bạn có thể nhập 1 hoặc nhiều mã tuỳ ý.

Dữ liệu mẫu:

stock.trading.price_board(symbols_list=['VCB','ACB','TCB','BID'])

  listing                                                                              ...     bid_ask                                                                                        
   symbol ceiling  floor ref_price stock_type exchange last_trading_date listed_share  ... bid_3_price bid_3_volume ask_1_price ask_1_volume ask_2_price ask_2_volume ask_3_price ask_3_volume
0     VCB   97300  84700     91000      STOCK      HSX                     5589091262  ...       90000       243100       90300         1200       90500         1600       90600          700
1     ACB   30400  26500     28450      STOCK      HSX                     3884050358  ...       29150         1000       29300        21200       29350        27900       29400        20800
2     TCB   49750  43250     46500      STOCK      HSX                     3522510811  ...       46250         1700       46400        20100       46450        72600       46500       228400
3     BID   52900  46050     49500      STOCK      HSX                     5700435900  ...       49100         2400       49250         1100       49300        20000       49350         1400

[4 rows x 36 columns]

Thông tin trả về phản ánh các mục thể hiện trên bảng giá, được chia thành 3 nhóm chính bao gồm listing, match, bid_ask tương ứng thông tin mô tả mã chứng khoán, thông tin khớp lệnh, mức giá - khối lượng chờ khớp

>>> stock.trading.price_board(symbols_list=['VCB','ACB','TCB','BID']).iloc[0].T

listing  symbol                                                               VCB
         ceiling                                                            97300
         floor                                                              84700
         ref_price                                                          91000
         stock_type                                                         STOCK
         exchange                                                             HSX
         last_trading_date                                                       
         listed_share                                                  5589091262
         type                                                               STOCK
         id                                                               8424561
         organ_name             Ngân hàng Thương mại Cổ phần Ngoại thương Việt...
         prior_close_price                                                  91000
match    match_price                                                        90200
         match_vol                                                          61600
         accumulated_volume                                               2241500
         accumulated_value                                                 202588
         avg_match_price                                              90380.54874
         highest                                                            91000
         lowest                                                             90000
         match_type                                                       unknown
         foreign_sell_volume                                               544585
         foreign_buy_volume                                                124300
         current_room                                                   365398389
         total_room                                                    1676727378
bid_ask  bid_1_price                                                        90200
         bid_1_volume                                                       26000
         bid_2_price                                                        90100
         bid_2_volume                                                       17900
         bid_3_price                                                        90000
         bid_3_volume                                                      243100
         ask_1_price                                                        90300
         ask_1_volume                                                        1200
         ask_2_price                                                        90500
         ask_2_volume                                                        1600
         ask_3_price                                                        90600
         ask_3_volume                                                         700
Name: 0, dtype: object
Kiểu dữ liệu
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 4 entries, 0 to 3
Data columns (total 36 columns):
 #   Column                        Non-Null Count  Dtype  
---  ------                        --------------  -----  
 0   (listing, symbol)             4 non-null      object 
 1   (listing, ceiling)            4 non-null      int64  
 2   (listing, floor)              4 non-null      int64  
 3   (listing, ref_price)          4 non-null      int64  
 4   (listing, stock_type)         4 non-null      object 
 5   (listing, exchange)           4 non-null      object 
 6   (listing, last_trading_date)  4 non-null      object 
 7   (listing, listed_share)       4 non-null      int64  
 8   (listing, type)               4 non-null      object 
 9   (listing, id)                 4 non-null      int64  
 10  (listing, organ_name)         4 non-null      object 
 11  (listing, prior_close_price)  4 non-null      int64  
 12  (match, match_price)          4 non-null      int64  
 13  (match, match_vol)            4 non-null      int64  
 14  (match, accumulated_volume)   4 non-null      int64  
 15  (match, accumulated_value)    4 non-null      int64  
 16  (match, avg_match_price)      4 non-null      float64
 17  (match, highest)              4 non-null      int64  
 18  (match, lowest)               4 non-null      int64  
 19  (match, match_type)           4 non-null      object 
 20  (match, foreign_sell_volume)  4 non-null      int64  
 21  (match, foreign_buy_volume)   4 non-null      int64  
 22  (match, current_room)         4 non-null      int64  
 23  (match, total_room)           4 non-null      int64  
 24  (bid_ask, bid_1_price)        4 non-null      int64  
 25  (bid_ask, bid_1_volume)       4 non-null      int64  
 26  (bid_ask, bid_2_price)        4 non-null      int64  
 27  (bid_ask, bid_2_volume)       4 non-null      int64  
 28  (bid_ask, bid_3_price)        4 non-null      int64  
 29  (bid_ask, bid_3_volume)       4 non-null      int64  
 30  (bid_ask, ask_1_price)        4 non-null      int64  
 31  (bid_ask, ask_1_volume)       4 non-null      int64  
 32  (bid_ask, ask_2_price)        4 non-null      int64  
 33  (bid_ask, ask_2_volume)       4 non-null      int64  
 34  (bid_ask, ask_3_price)        4 non-null      int64  
 35  (bid_ask, ask_3_volume)       4 non-null      int64  
dtypes: float64(1), int64(28), object(7)
memory usage: 1.2+ KB

Thảo luận

Đang tải bình luận...