KR102124322B1 - A device for managing data on stock trading using a first-in-first-out method and a method for managing stock trading data using the same - Google Patents

A device for managing data on stock trading using a first-in-first-out method and a method for managing stock trading data using the same Download PDF

Info

Publication number
KR102124322B1
KR102124322B1 KR1020187032232A KR20187032232A KR102124322B1 KR 102124322 B1 KR102124322 B1 KR 102124322B1 KR 1020187032232 A KR1020187032232 A KR 1020187032232A KR 20187032232 A KR20187032232 A KR 20187032232A KR 102124322 B1 KR102124322 B1 KR 102124322B1
Authority
KR
South Korea
Prior art keywords
trading
selling
profit
price
item
Prior art date
Application number
KR1020187032232A
Other languages
Korean (ko)
Other versions
KR20180125025A (en
Inventor
차민호
Original Assignee
아프로비에이 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 아프로비에이 주식회사 filed Critical 아프로비에이 주식회사
Publication of KR20180125025A publication Critical patent/KR20180125025A/en
Application granted granted Critical
Publication of KR102124322B1 publication Critical patent/KR102124322B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/06Asset management; Financial planning or analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services

Abstract

후입선출 방식의 종목 거래 데이터 관리 장치 및 이를 이용한 종목 거래 데이터 관리 방법이 개시된다. 본 발명의 일실시예에 따른 종목 거리 데이터 관리 방법은 특정 종목에 대한 매수가 발생하면 매수가와 매수 수량을 저장하고, 종목에 대한 특정 매도가의 매도가 발생하면 후입선출 방식으로 매매차익 및 매매차익 누계를 산출하여 저장하고, 매매차익 누계를 이용하여 후입선출 방식의 보유종목의 평균 매수 단가를 산출하고, 보유종목의 평균 매수 단가에 상응하는 투자이익을 산출할 수 있다. 따라서, 보다 정확하고 다양한 종목별 수익정보를 제공할 수 있다.Disclosed is a first-in-first-out method for managing item transaction data and a method for managing item transaction data using the same. According to an embodiment of the present invention, the method for managing the distance data of stocks stores the number of purchases and the number of purchases when a purchase occurs for a specific item, and accumulates the trading gains and trading gains by a first-in-first-out method when the sale of a specific sell occurs for the item. Calculate and store, and calculate the average purchase price of the stocks in the last-in, first-out method using the cumulative trading profit, and calculate the investment profit corresponding to the average purchase price of the stocks. Therefore, it is possible to provide more accurate and various profit information for each item.

Description

후입선출 방식의 종목 거래 데이터 관리 장치 및 이를 이용한 종목 거래 데이터 관리 방법A device for managing data on stock trading using a first-in-first-out method and a method for managing stock trading data using the same

본 발명은 후입선출 방식의 종목 거래 데이터 관리 장치 및 이를 이용한 종목 거래 데이터 관리 방법(APPARATUS FOR MANAGING ITEM TRADING DATA BASD ON LAST-IN-FIRST-OUT AND METHOD USING THE SAME)에 관한 것으로, 더욱 상세하게는 후입선출 방식을 기반으로 종목별 수익을 산출할 수 있는 기술에 관한 것이다.The present invention relates to a first-in-first-out method trading data management device and a trading method using the same (APPARATUS FOR MANAGING ITEM TRADING DATA BASD ON LAST-IN-FIRST-OUT AND METHOD USING THE SAME), more specifically It is related to technology that can calculate profits for each item based on the first-in-first-out method.

본 발명은 2016년 6월 13일 출원된 한국특허출원 제10-2016-0073201호의 출원일의 이익을 주장하며, 그 내용 전부는 본 명세서에 포함된다.The present invention claims the benefit of the filing date of Korean Patent Application No. 10-2016-0073201 filed on June 13, 2016, the entire contents of which are incorporated herein.

주식, 선물 또는 옵션 등의 종목을 온라인을 통하여 거래하는 온라인 종목 거래 시스템은 매입평균가 방식으로 데이터를 갖고 있다.Online stock trading systems that trade stocks, futures or options, etc. online, have data in the form of an average purchase price.

매입평균가 방식은 주식, 선물 또는 옵션 등을 매수만 을 경우 매입금액을 수량으로 나눈 단가를 말한다. 만일 매도를 할 경우 보유 주식의 매입평균가는 변함이 없다. 만일 매도후에 매수를 할 경우, 매입평균가는 (매도 후 보유수량 * 매도 후 매입평균가 + 매수단가 * 매수수량)/보유수량이 된다.The average purchase price method refers to the unit price divided by the purchase amount when the stock, futures or options are purchased. If the sale is made, the average purchase price of the shares held does not change. If you make a purchase after a sale, the average purchase price is (the number of holdings after the sale * the average purchase price after the sale + the selling price * the number of purchases)/retention amount.

현재는 이 매입평균가를 가지고, 매도실현손익, 평가수익률, 평가손익을 계산하고 있다. 매도실현손익은 (매도가 - 매입평균가) * 매도수량으로 계산하고 있고, 평가수익률은 1 - (매입평균가 / 현재가)로 계산하고 있고, 평가손익은 (현재가 - 매입평균가) * 보유수량으로 계산하고 있다.Currently, with the average price of the purchase, the actual sales gains, valuation returns, and valuation gains and losses are calculated. The actual sales gains and losses are calculated as (Sell-Buy Average) * Selling Quantity, the valuation rate is calculated as 1-(Buy Average / Present Price), and the valuation gains and losses are calculated as (Current Price-Buy Average) * Holding Quantity. have.

이런 매입평균가 방식은 실물을 사고 파는 거래에 있어서 유효하게 사용될 수 있으며, 특히 회계처리를 해야 할 경우 사용될 수 있다.This method of average purchase price can be effectively used in transactions that buy and sell real goods, and can be used especially when accounting is required.

그러나, 주식, 선물 및 옵션 등의 금융 상품에 있어서, 각각의 거래자들은 가격의 변화에 의해서 상호간의 거래가 빈번하게 발생한다. 상품의 거래에 있어서는 가격이 변하여도 거래의 방향성은 변하지 않는데 반하여(생산자 -> 유통업자 -> 소비자), 주식, 선물, 옵션 등 금융상품의 거래는 언제나 일정한 방향이 존재하지 않고, 서로가 공급자이며, 서로가 수요자가 되는 특성이 있다. 이런 거래에 있어서는 각자의 매입평균가보다는 가장 최근에 매입한 금액이 얼마인가가 훨씬 중요하게 되며, 따라서, 주식, 선물, 옵션 등의 금융상품을 매수, 매도하는 사람들은 매입평균가가 매매의 판단 기준이 되지 않고, 최근에 매수한 금액이 매매의 판단 기준이 되는 경우가 많다.However, in financial products such as stocks, futures, and options, each trader frequently trades with each other due to a change in price. In the transaction of a product, the direction of the transaction does not change even when the price changes (producer -> distributor -> consumer), but there is not always a certain direction in the transaction of financial products such as stocks, futures and options, and each other is a supplier. However, there is a characteristic that each other becomes a consumer. In such a transaction, it is much more important that the amount of the most recent purchase than the average purchase price of each person. Therefore, those who buy and sell financial products such as stocks, futures, and options are the basis for the judgment of the sale. In many cases, the recently purchased amount is often used as a judgment criterion.

또한, 매입평균가의 정의에 의해서 매입평균가에 가장 큰 영향을 미치는 것은 가장 최근에 매입한 가격이다. 그러나 주식, 선물, 옵션 등의 금융상품 거래에 있어서, 많은 경우 매도는 가장 최근에 산 상품을 이익실현을 위해 매도하거나, 매수가 잘못됐다고 판단해 매도하는 것일 가능성이 높다.In addition, by definition of the average purchase price, the price that has the most influence on the average purchase price is the most recently purchased price. However, in trading financial products such as stocks, futures, and options, in many cases, selling is most likely to sell the most recently purchased product for profit or to judge that the purchase was wrong.

따라서, 현재의 매입평균가를 가지고 계산하는 매도실현손익, 평가수익률, 평가손익을 계산하는 방식을 바꿀 필요가 요구되고 있으며, 본 시스템의 후입선출 방식을 기반으로 매입평균가, 매도실현손익, 평가수익율, 평가손익을 산출할 수 있는 전혀 새로운 종목 거래 시스템의 필요성이 절실하게 대두된다.Therefore, there is a need to change the method of calculating the realization gains, valuation returns, and valuation gains and losses that are calculated with the current average purchase price. Based on the first-in-first-out method of this system, the purchase average price, real sales gains, valuation returns, There is an urgent need for a brand new stock trading system that can generate valuation gains and losses.

관련 선행기술로는, 한국 공개 특허 제10-2014-0134060호, 2014년 11월 21일 공개 (명칭: 온라인 주식 매매일지 작성 방법 및 그 시스템)이 있다.As a related prior art, there is Korean Patent Publication No. 10-2014-0134060, published on November 21, 2014 (name: online stock trading journal creation method and system).

본 발명의 목적은 주식, 선물 또는 옵션 등의 종목 거래 시 후입선출 방식에 따른 종목별 또는 시간 별로 보유종목의 손익을 제공하는 것이다.It is an object of the present invention to provide profit or loss of a stock held by stocks or futures or by stocks, futures, or options according to the first-in-first-out method.

또한, 본 발명의 목적은 후입선출 방식을 기반으로 손익을 산출함으로써 보다 정확하게 종목의 수익 정보를 제공하는 것이다.In addition, an object of the present invention is to provide profit information of an item more accurately by calculating profit and loss based on a first-in-first-out method.

또한, 본 발명의 목적은 특정 종목의 매도가 발생할 경우에 매도시점을 기준으로 가장 최근에 매수한 주식의 정보를 제공하는 것이다.In addition, an object of the present invention is to provide information on the most recently purchased stock based on the selling point when selling of a specific item occurs.

상기한 목적을 달성하기 위한 본 발명에 따른 종목 거래 데이터 관리 장치에 의하여 수행되는 종목 거래 데이터 관리 방법은, 종목 거래 데이터 관리 장치에 의하여 수행되는 종목 거래 데이터 관리 방법에 있어서, 특정 종목에 대한 매수가 발생하면 매수가와 매수 수량을 저장하는 단계; 상기 특정 종목에 대한 특정 매도가의 매도가 발생하면 후입선출 방식으로 매매차익 및 매매차익 누계를 산출하여 저장하는 단계; 및 상기 매매차익 누계를 이용하여 후입선출 방식의 보유종목의 평균 매수 단가를 산출하는 단계; 및 상기 보유종목의 평균 매수 단가에 상응하는 투자이익을 산출하는 단계를 포함한다.The securities transaction data management method performed by the securities transaction data management device according to the present invention for achieving the above object is: in the securities transaction data management method performed by the securities transaction data management device, the number of purchases for a specific securities If it occurs, storing the number of sheets and the number of sheets; Calculating and accumulating trading profits and trading profits in a first-in-first-out method when selling of a specific sale occurs for the specific item; And calculating an average purchase price of stocks of the last-in-first-out method using the cumulative trading profits. And calculating an investment profit corresponding to the average purchase price of the holding item.

이 때, 종목 거래 데이터 관리 방법은 상기 특정 종목의 매매로 인하여 발생하는 상기 투자이익의 제1 엘리먼트 및 상기 특정 종목의 보유잔량의 가격변동에 상응하는 상기 투자이익의 제2 엘리먼트를 구분하여 표시하는 단계를 더 포함할 수 있다.At this time, the method of managing the transaction data of the item is to separately display and display the first element of the investment profit generated by the trading of the specific item and the second element of the investment profit corresponding to the price fluctuation of the remaining amount of the specific item. It may further include a step.

이 때, 제1 엘리먼트는 상기 매매차익 누계를 이용하여 산출될 수 있다.At this time, the first element may be calculated using the cumulative trading profit.

이 때, 제2 엘리먼트는 상기 보유종목의 평균 매수 단가에서 현재가를 뺀 금액에 상기 보유잔량을 곱하여 산출될 수 있다.At this time, the second element may be calculated by multiplying the remaining amount by the amount obtained by subtracting the current price from the average purchase price of the held item.

이 때, 제1 엘리먼트 및 상기 제2 엘리먼트의 합은 상기 투자이익에 상응할 수 있다.At this time, the sum of the first element and the second element may correspond to the investment profit.

이 때, 매매차익 및 매매차익 누계를 산출하여 저장하는 단계는 가장 최근에 매수한 물량부터 상기 매도에 상응하는 매도물량으로 하여 매도 상대 매수가를 저장하고, 상기 매도 상대 매수가에 기반하여 상기 매매차익 및 매매차익 누계를 산출할 수 있다.At this time, the step of calculating and storing the trading profit and the cumulative trading profit is to store the relative selling price as the selling quantity corresponding to the selling amount from the most recently purchased quantity, and based on the selling relative buying quantity, You can calculate the cumulative trading profit.

이 때, 매매차익 및 매매차익 누계를 산출하여 저장하는 단계는 상기 특정 매도가의 매도물량이 가장 최근에 매수한 물량보다 많은 경우에 둘 이상의 매도 상대 매수가들을 저장하고, 상기 둘 이상의 매도 상대 매수가들 각각에 대한 매매차익 및 매매차익 누계를 산출할 수 있다.At this time, the step of calculating and storing the trading profit and the cumulative trading profit is to store two or more selling relative purchases when the selling quantity of the specific selling is greater than the most recently purchased quantity, and each of the two or more selling relative buyings, respectively. You can calculate the cumulative trading profit and trading profit for.

이 때, 매매차익은 상기 특정 매도가에서 상기 매도 상대 매수가를 뺀 금액에 상기 매도수량을 곱한 값에서 매수 수수료, 매도 수수료 및 세금을 빼서 산출될 수 있다.At this time, the trading profit may be calculated by subtracting the purchase fee, the selling fee, and the tax from the value obtained by subtracting the relative selling price from the specific selling price and the selling quantity.

이 때, 후입선출 방식의 보유종목의 평균 매수 단가는 투입금액에 상기 매매차익 누계를 더한 값을 보유잔량으로 나눠서 산출될 수 있다.At this time, the average purchase price of the stocks of the first-in-first-out method can be calculated by dividing the input amount by adding the cumulative trading profit to the remaining amount.

또한, 본 발명의 일실시예에 따른 종목 거래 데이터 관리 장치는, 특정 종목에 대한 매수가와 매수 수량을 저장하고, 특정 매도가의 종목매도 발생시마다 후입선출 방식으로 산출되는 매매차익 및 매매차익 누계를 저장하는 메모리; 및 상기 후입선출 방식의 매매차익 누계를 이용하여 후입선출 방식의 보유종목 평균 매수단가를 산출하고, 상기 보유종목의 평균 매수 단가에 상응하는 투자이익을 산출하는 프로세서를 포함한다.In addition, the stock trading data management apparatus according to an embodiment of the present invention stores the number of purchases and the number of purchases for a specific stock, and stores the cumulative trading gains and trading profits calculated by a first-in-first-out method whenever the stock sales of a specific sell occur. Memory to play; And a processor for calculating the average selling price of the stocks of the last-in-first-out method using the cumulative trading gains of the first-in-first-out method and calculating an investment profit corresponding to the average purchase price of the held stock.

이 때, 프로세서는 상기 특정 종목의 매매로 인하여 발생하는 상기 투자이익의 제1 엘리먼트 및 상기 특정 종목의 보유잔량의 가격변동에 상응하는 상기 투자이익의 제2 엘리먼트를 구분하여 표시할 수 있다.At this time, the processor may classify and display the first element of the investment profit generated by the trading of the specific item and the second element of the investment profit corresponding to the price change of the remaining amount of the specific item.

이 때, 제1 엘리먼트는 상기 매매차익 누계를 이용하여 산출될 수 있다.At this time, the first element may be calculated using the cumulative trading profit.

이 때, 제2 엘리먼트는 상기 보유종목의 평균 매수 단가에서 현재가를 뺀 금액에 상기 보유잔량을 곱하여 산출될 수 있다.At this time, the second element may be calculated by multiplying the remaining amount by the amount obtained by subtracting the current price from the average purchase price of the held item.

이 때, 제1 엘리먼트 및 상기 제2 엘리먼트의 합은 상기 투자이익에 상응할 수 있다.At this time, the sum of the first element and the second element may correspond to the investment profit.

이 때, 메모리는 가장 최근에 매수한 물량부터 상기 매도에 상응하는 매도물량으로 하여 매도 상대 매수가를 저장하고, 상기 매도 상대 매수가에 기반하여 상기 매매차익 및 매매차익 누계를 산출할 수 있다.At this time, the memory stores the relative selling price as the selling quantity corresponding to the selling amount from the most recently purchased quantity, and can calculate the accumulated trading profit and trading profit based on the relative selling price.

이 때, 메모리는 상기 특정 매도가의 매도물량이 가장 최근에 매수한 물량보다 많은 경우에 둘 이상의 매도 상대 매수가들을 저장하고, 상기 둘 이상의 매도 상대 매수가들 각각에 대한 매매차익 및 매매차익 누계를 산출할 수 있다.At this time, the memory stores two or more selling relative purchases when the selling quantity of the specific selling is greater than the most recently purchased quantity, and calculates the trading gains and trading gains accumulated for each of the two or more selling relative buyings. Can.

이 때, 매매차익은 상기 특정 매도가에서 상기 매도 상대 매수가를 뺀 금액에 상기 매도수량을 곱한 값에서 매수 수수료, 매도 수수료 및 세금을 빼서 산출될 수 있다.At this time, the trading profit may be calculated by subtracting the purchase fee, the selling fee, and the tax from the value obtained by subtracting the relative selling price from the specific selling price and the selling quantity.

이 때, 후입선출 방식의 보유종목의 평균 매수 단가는 투입금액에 상기 매매차익 누계를 더한 값을 보유잔량으로 나눠서 산출될 수 있다.At this time, the average purchase price of the stocks of the first-in-first-out method can be calculated by dividing the input amount by adding the cumulative trading profit to the remaining amount.

본 발명에 따르면, 주식, 선물 또는 옵션 등의 종목 거래 시 후입선출 방식에 따른 종목별 또는 시간 별로 보유종목의 손익을 제공할 수 있다.According to the present invention, when trading stocks, futures or options, it is possible to provide profit or loss of the stocks held by stocks or by time according to the first-in-first-out method.

또한, 본 발명은 후입선출 방식을 기반으로 손익을 산출함으로써 보다 정확하게 종목의 수익 정보를 제공할 수 있다.In addition, the present invention can provide profit information of an item more accurately by calculating profit or loss based on a first-in-first-out method.

또한, 본 발명은 특정 종목의 매도가 발생할 경우에 매도시점을 기준으로 가장 최근에 매수한 주식의 정보를 제공할 수 있다.In addition, the present invention can provide information on the most recently purchased stock based on the selling point when selling of a specific item occurs.

도 1은 본 발명의 일실시예에 따른 후입선출 방식의 종목 거래 시스템을 나타낸 도면이다.
도 2는 도 1에 도시된 종목 거래 데이터 관리 장치의 일 예를 나타낸 블록도이다.
도 3은 본 발명의 일실시예에 따른 후입선출 방식의 종목 거래 데이터 관리 방법을 나타낸 동작 흐름도이다.
도 4는 본 발명에 따른 종목 거래 데이터 관리 방법을 이용한 종목 거래 데이터의 일 예를 나타낸 도면이다.
도 5 내지 도 6은 본 발명에 따른 종목 거래 데이터 관리 방법을 이용한 종목 거래 데이터의 다른 예를 나타낸 도면이다.
도 7 내지 도 8은 본 발명에 따른 종목 거래 데이터 관리 방법을 이용한 종목 거래 데이터의 또 다른 예를 나타낸 도면이다.
도 9는 본 발명에 따른 종목 거래 데이터 관리 장치의 인터페이스 화면의 일 예를 나타낸 도면이다.
1 is a diagram showing a stock trading system of a first-in-first-out method according to an embodiment of the present invention.
FIG. 2 is a block diagram showing an example of a device transaction data management device illustrated in FIG. 1.
3 is an operation flowchart showing a method of managing item transaction data in a first-in-first-out method according to an embodiment of the present invention.
4 is a diagram showing an example of stock trading data using the stock trading data management method according to the present invention.
5 to 6 are views showing another example of stock trading data using the stock trading data management method according to the present invention.
7 to 8 are views showing another example of stock trading data using the stock trading data management method according to the present invention.
9 is a diagram showing an example of an interface screen of an item trading data management apparatus according to the present invention.

본 발명을 첨부된 도면을 참조하여 상세히 설명하면 다음과 같다. 여기서, 반복되는 설명, 본 발명의 요지를 불필요하게 흐릴 수 있는 공지 기능, 및 구성에 대한 상세한 설명은 생략한다. 본 발명의 실시형태는 당 업계에서 평균적인 지식을 가진 자에게 본 발명을 보다 완전하게 설명하기 위해서 제공되는 것이다. 따라서, 도면에서의 요소들의 형상 및 크기 등은 보다 명확한 설명을 위해 과장될 수 있다.If described in detail with reference to the accompanying drawings the present invention. Here, repeated descriptions, well-known functions that may unnecessarily obscure the subject matter of the present invention, and detailed description of the configuration will be omitted. Embodiments of the present invention are provided to more fully describe the present invention to those skilled in the art. Accordingly, the shape and size of elements in the drawings may be exaggerated for a clearer explanation.

이하, 본 발명에 따른 바람직한 실시예를 첨부된 도면을 참조하여 상세하게 설명한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명의 일실시예에 따른 후입선출 방식의 종목 거래 시스템을 나타낸 도면이다.1 is a diagram showing a stock trading system of a first-in-first-out method according to an embodiment of the present invention.

도 1을 참조하면, 본 발명의 일실시예에 따른 후입선출 방식의 종목 거래 시스템은 종목 거래 데이터 관리 장치(110) 및 단말(120-1~ 120-N)을 포함한다.Referring to FIG. 1, a stock trading system of a first-in-first-out method according to an embodiment of the present invention includes a stock trading data management device 110 and terminals 120-1 to 120-N.

종목 거래 데이터 관리 장치(110)는 후입선출 방식을 기반으로 주식의 종목별 수익을 계산할 수 있다. 일반적인 온라인 종목 거래 시스템은 매입평균가를 기준으로 종목 거래 데이터를 데이터베이스화 하여 수익을 계산한다. The stock transaction data management device 110 may calculate the stock-specific profit of each stock based on a first-in-first-out method. A general online trading system calculates profit by database of trading data based on the average purchase price.

그러나, 실제로 주식, 선물 또는 옵션 등의 종목을 매도하는 것은 최근에 매수한 물량을 매도하는 것이지 이전에 매수한 물량을 매도하는 것이 아니다. 즉, 실제로는 후입선출 방식에 상응하는 매매가 이루어지고 있지만, 온라인 종목 거래 시스템에서는 매입평균가를 기준으로 하는 회계처리 방식으로 수익을 계산하기 때문에 보유종목에 대해 정확한 수익 정보를 제공받기 어렵다. However, in fact, selling stocks, futures or options, etc., means selling recently purchased stocks, not selling previously purchased stocks. In other words, in practice, trading corresponding to the first-in-first-out method is carried out, but it is difficult to provide accurate profit information about the stocks in the online stock trading system because the profits are calculated using the accounting method based on the average purchase price.

이러한 문제를 해결하기 위해, 본 발명에 따른 종목 거래 시스템은 후입선출 방식을 기반으로 보유종목에 대한 수익 정보를 제공함으로써, 주식의 보유자가 자신의 주식보유 상황과 매매에 의해 발생한 손익정보를 정확하게 파악할 수 있도록 할 수 있다.In order to solve this problem, the stock trading system according to the present invention provides profit information for stocks based on a first-in-first-out method, so that the stock holder can accurately grasp the stock holding situation and profit/loss information generated by trading. I can do it.

이 때, 종목 거래 데이터 관리 장치(110)는 특정 종목에 대한 매수가와 매수 수량을 저장하고, 특정 매도가의 종목매도 발생 시 마다 후입선출 방식으로 산출되는 매매차익 및 매매차익 누계를 저장한다.At this time, the stock trading data management apparatus 110 stores the number of purchases and the number of purchases for a specific stock, and stores the cumulative trading profits and trading profits calculated by a first-in-first-out method whenever a stock sale of a specific sale occurs.

이 때, 가장 최근에 매수한 물량부터 매도물량으로 하여 매도 상대 매수가를 저장할 수 있고, 매도 상대 매수가에 기반하여 매매차익 및 매매차익 누계를 산출할 수 있다.At this time, the relative selling price can be stored from the most recently purchased quantity to the selling quantity, and the cumulative trading profit and trading profit can be calculated based on the relative selling price.

이 때, 특정 매도가의 매도물량이 가장 최근에 매수한 물량보다 많은 경우에 둘 이상의 매도 상대 매수가들을 저장하고, 둘 이상의 매도 상대 매수가들 각각에 대한 매매차익 및 매매차익 누계를 산출할 수 있다.At this time, when the selling quantity of the specific selling is greater than the most recently purchased quantity, two or more selling relative buyings are stored, and the trading gains and trading gains accumulated for each of the two or more selling relative buyings can be calculated.

이 때, 매매차익은 특정 매도가에서 매도 상대 매수가를 뺀 금액에 매도수량을 곱한 값에서 매수 수수료, 매도 수수료 및 세금을 빼서 산출될 수 있다.At this time, the trading profit may be calculated by subtracting the purchase fee, the selling fee, and the tax from the value obtained by multiplying the selling amount by the amount obtained by subtracting the relative selling price from the specific selling price.

또한, 종목 거래 데이터 관리 장치(110)는 후입선출 방식의 매매차익 누계를 이용하여 후입선출 방식의 보유종목 평균 매수단가를 산출한다.In addition, the item transaction data management apparatus 110 calculates the average selling price of the items held in the first-in-first-out method by using the cumulative trading profit of the first-in-first-out method.

이 때, 후입선출 방식의 보유종목 평균 매수 단가는 투입금액에 매매차익 누계를 더한 값을 보유잔량으로 나눠서 산출될 수 있다.At this time, the average purchase price of the stocks of the first-in-first-out method can be calculated by dividing the input amount by the cumulative trading profit by the remaining amount.

또한, 종목 거래 데이터 관리 장치(110)는 보유종목의 평균 매수 단가에 상응하는 투자이익을 산출한다.In addition, the stock transaction data management device 110 calculates an investment profit corresponding to the average purchase price of the stock held.

이 때, 투자이익은 보유종목의 현재가에 보유잔량을 곱한 금액에서 투입금액을 빼서 산출할 수도 있다.At this time, the investment profit can be calculated by subtracting the input amount from the amount of the current stock of the holding item multiplied by the remaining amount.

또한, 종목 거래 데이터 관리 장치(110)는 특정 종목의 매매로 인하여 발생하는 투자이익의 제1 엘리먼트 및 특정 종목의 보유잔량의 가격변동에 상응하는 투자이익의 제2 엘리먼트를 구분하여 표시한다.In addition, the item trading data management apparatus 110 classifies and displays the first element of the investment profit generated by the trading of the specific item and the second element of the investment profit corresponding to the price fluctuation of the remaining amount of the specific item.

*이 때, 제1 엘리먼트는 매매차익 누계를 이용하여 산출될 수 있다.* At this time, the first element may be calculated using a cumulative trading profit.

이 때, 제2 엘리먼트는 보유종목의 평균 매수 단가에서 현재가를 뺀 금액에 보유잔량을 곱하여 산출될 수 있다.At this time, the second element may be calculated by multiplying the remaining amount by the amount obtained by subtracting the current price from the average purchase price of the held item.

이 때, 제1 엘리먼트 및 제2 엘리먼트의 합은 투자이익에 상응할 수 있다.At this time, the sum of the first element and the second element may correspond to the investment profit.

단말(120-1~ 120-N)은 주식을 보유한 사용자가 종목 거래 데이터를 확인하는 수단에 상응할 수 있다. The terminals 120-1 to 120-N may correspond to a means for a user who holds stocks to check stock trading data.

이 때, 단말(120-1~ 120-N)은 스마트 폰(Smart Phone), 휴대 단말기(Portable Terminal), 이동 단말기(Mobile Terminal), 개인 정보 단말기(Personal Digital Assistant: PDA), PMP(Portable Multimedia Player) 단말기, 텔레매틱스(Telematics) 단말기, 내비게이션(Navigation) 단말기, 개인용 컴퓨터(Personal Computer), 노트북 컴퓨터, 슬레이트 PC(Slate PC), 태블릿 PC(Tablet PC), 울트라북(ultrabook), 웨어러블 디바이스(Wearable Device, 예를 들어, 워치형 단말기(Smartwatch), 글래스형 단말기(Smart Glass), HMD(Head Mounted Display) 등 포함), 와이브로(Wibro) 단말기, IPTV(Internet Protocol Television) 단말기, 스마트 TV, 디지털방송용 단말기, 텔레비전(Television), 3D 텔레비전, 홈 시어터(Home Theater) 시스템, AVN(Audio Video Navigation) 단말기, A/V(Audio/Video) 시스템, 플렉시블 단말기(Flexible Terminal) 등과 같은 다양한 단말에 상응할 수 있다.At this time, the terminal (120-1 ~ 120-N) is a smart phone (Smart Phone), a portable terminal (Portable Terminal), a mobile terminal (Mobile Terminal), personal information terminal (Personal Digital Assistant: PDA), PMP (Portable Multimedia) Player) terminal, Telematics terminal, Navigation terminal, Personal computer, Notebook computer, Slate PC, Tablet PC, Ultrabook, Wearable device Device, for example, a watch-type terminal (Smartwatch), a glass-type terminal (Smart Glass), a head mounted display (HMD), etc., a Wibro terminal, an IPTV (Internet Protocol Television) terminal, a smart TV, and digital broadcasting It can correspond to various terminals such as terminals, televisions, 3D televisions, home theater systems, audio video navigation (AVN) terminals, audio/video (A/V) systems, and flexible terminals. have.

이 때, 단말(120-1~ 120-N)은 네트워크(130)를 기반으로 종목 거래 데이터 관리 장치(110)로부터 종목 거래에 관한 정보를 수신할 수 있다.At this time, the terminals 120-1 to 120-N may receive information about the item transaction from the item transaction data management device 110 based on the network 130.

이 때, 네트워크(130)는 기존에 이용되는 네트워크 및 향후 개발 가능한 네트워크를 모두 포괄하는 개념이다. 예를 들면, 상기 네트워크는 인터넷 프로토콜(IP)을 통하여 대용량 데이터의 송수신 서비스 및 끊기는 현상이 없는 데이터 서비스를 제공하는 아이피망, 아이피를 기반으로 서로 다른 망을 통합한 아이피망 구조인 올 아이피(All IP)망 등일 수 있으며, 유선망, Wibro(Wireless Broadband)망, WCDMA를 포함하는 3세대 이동통신망, HSDPA(High Speed Downlink Packet Access)망 및 LTE 망을 포함하는 3.5세대 이동통신망, LTE advanced를 포함하는 4세대 이동통신망, 위성통신망 및 와이파이(Wi-Fi)망 중에서 하나 이상을 결합하여 이루어질 수 있다.At this time, the network 130 is a concept encompassing both a network used in the past and a network that can be developed in the future. For example, the network is an IP network that provides a large-scale data transmission/reception service and an Internet-free data service through an Internet protocol (IP), and an IP network structure that integrates different networks based on IP. IP) network, including wired networks, Wibro (Wireless Broadband) networks, 3G mobile communication networks including WCDMA, HSDPA (High Speed Downlink Packet Access) networks, and 3.5G mobile networks including LTE networks, including LTE advanced It can be made by combining one or more of a 4G mobile communication network, a satellite communication network, and a Wi-Fi network.

도 2는 도 1에 도시된 종목 거래 데이터 관리 장치의 일 예를 나타낸 블록도이다.FIG. 2 is a block diagram showing an example of a device transaction data management device illustrated in FIG. 1.

도 2를 참조하면, 도 1에 도시된 종목 거래 데이터 관리 장치(110)는 메모리(210) 및 프로세서(220)를 포함한다.Referring to FIG. 2, the device transaction data management device 110 illustrated in FIG. 1 includes a memory 210 and a processor 220.

메모리(210)는 특정 종목에 대한 매수가와 매수 수량을 저장하고, 특정 매도가의 종목매도 발생시마다 후입선출 방식으로 산출되는 매매차익 및 매매차익 누계를 저장한다.The memory 210 stores the number of purchases and the number of purchases for a specific item, and stores the cumulative trading profits and trading profits that are calculated by a first-in-first-out method whenever an item is sold at a specific sale.

이 때, 후입선출 방식은 특정 종목에 대한 특정 매도가의 매도가 발생한 경우, 가장 최근에 발생한 매수에 의한 매수 잔량을 매도한 것으로 판단하는 방식에 상응할 수 있다. At this time, the first-in-first-out method may correspond to a method in which when the sale of a specific sale for a specific item occurs, the remaining amount of the purchase by the most recent purchase is sold.

현재, 주식이나 선물 및 옵션 등의 종목 거래의 평가는 회계처리 기준 방식으로 평균매수가를 기준으로 하고 있다. 따라서, 종목매도가 발생할 경우에도 평균매수가로 주식을 매도한 것으로 판단한 뒤, 이에 상응하게 매매에 의한 수익과 남은 보유주식의 보유단가를 평가하고 있다. Currently, the valuation of stocks, futures, and stock trading is based on the average number of purchases using the accounting method. Therefore, even when an item is sold, it is judged that the stock has been sold at the average number of shares, and correspondingly, the profit from the sale and the holding price of the remaining stocks are evaluated.

그러나, 실제로 주식이나 선물 및 옵션 등을 매도하는 것은 최근에 매수한 주식을 매도하는 것이지, 이전에 매수한 주식을 매도하는 것이 아닐 수 있다. 이처럼 회계처리 방식으로 보유주식의 평균 매수단가를 평가한다면 실제 매도에 따른 수익을 정확하게 계산할 수 없다. However, actually selling stocks, futures, options, etc. may be selling recently purchased stocks, but not selling previously purchased stocks. In this way, if the average selling price of stocks held is evaluated by the accounting method, it is impossible to accurately calculate the profit from the actual sale.

이러한 문제점을 해결하기 위해서 본 발명에서는 실제 매도 방식과 일치하는 후입선출 방식의 종목 거래 데이터 관리 장치를 제공함으로써, 보다 정확한 종목 거래 정보와 함께 다양한 방식의 손익 정보를 제공하고자 한다.In order to solve this problem, the present invention is to provide a more accurate stock transaction information and various types of profit and loss information by providing a stock transaction data management device of a first-in-first-out method that matches the actual selling method.

이 때, 메모리(210)는 특정 종목에 대한 매수 발생 시, 각 매수에 따른 매수정보를 기록할 필드를 생성하고, 각 필드에 매수 정보를 저장할 수 있다. 예를 들어, 종목 A에 대한 매수가 발생하였다고 가정한다면, 종목 A의 매수에 대한 매수가 필드와 매수 수량 필드에 각각 매수가와 매수 수량을 저장할 수 있다.At this time, the memory 210 may generate a field to record the purchase information according to each purchase, when a purchase for a specific event occurs, and store the purchase information in each field. For example, assuming that the purchase for item A has occurred, the number of sheets for the number of sheets in the field A and the number of sheets for the number of sheets A may be stored, respectively.

이 때, 매수가 발생하지 않더라도, 이미 주식을 갖고 있거나 이체 받은 경우에는 매수 발생시와 동일하게 필드를 생성하여 매수 정보와 동일한 형식으로 저장할 수 있다.At this time, even if the purchase does not occur, if you already have stock or transfer, you can create the same field as when the purchase occurs and store it in the same format as the purchase information.

이 때, 매수가와 매수 수량은 종목 거래 시 매수하는 거래 단가와 수량을 의미할 수 있다. 따라서, 이미 보유하고 있던 주식에 대해서는 해당 종목의 현재 단가를 매수가로 저장하고, 보유하고 있던 주식의 양을 매수 수량으로 저장할 수 있다.At this time, the number of purchases and the number of purchases may refer to the transaction unit price and quantity to be purchased when trading the stock. Therefore, for the stocks already held, the current unit price of the corresponding stock can be stored as a purchase, and the amount of the stocks held can be stored as a purchase quantity.

이 때, 메모리(210)는 종목매도 발생 시 마다 후입선출 방식으로 매매차익과 매매차익 누계를 산출하기 위해서, 각 매수 마다 매수 잔량, 매수 상대 매도량, 매수 상대 매도가, 매수상대 매도일자 및 시간, 매수 수수료, 매도 수수료 및 세금 등의 정보를 저장할 수 있다.At this time, the memory 210, in order to calculate the cumulative trading profit and trading profit in a first-in-first-out method whenever an item is sold, the remaining amount of purchase, the relative amount of purchase, the relative date of purchase, the date and time of the purchase relative, You can store information such as purchase fees, selling fees and taxes.

이 때, 매매차익은 매수와 매도로 인해 발생하는 손익 금액을 의미할 수 있으며, 이를 누적하여 합산한 것이 매매차익 누계에 상응할 수 있다.At this time, the trading profit may mean the amount of profit or loss arising from the purchase and sale, and the cumulative sum of these may correspond to the cumulative trading profit.

이 때, 매수 잔량은 매수한 매수 수량에서, 매수 이후 발생한 매도의 매수 수량을 빼고 남은 값에 상응할 수 있다. 따라서, 각 매수에 대해서, 매수 잔량이 0이 될 때까지 매수 잔량에서 매수 이후의 매도에 의한 매도 수량을 빼줄 수 있다.At this time, the remaining amount of the purchase may correspond to the value remaining after subtracting the number of purchases of the sale occurring after the purchase, from the number of purchases purchased. Therefore, for each purchase, it is possible to subtract the sale quantity by the sale after the purchase from the remaining purchase amount until the remaining purchase amount becomes 0.

만약, 해당 매수의 매수 잔량이 0이 아닌 상태에서 다시 매수가 발생한다면, 이 후의 매도에 의한 매도 수량은 가장 최근에 발생한 매수의 매수 잔량에서 제외할 수 있다. 즉, 매도에 의한 매도 수량은 가장 최근의 매수에 대한 매수 잔량이 0이 될 때까지 공제해 주고, 가장 최근의 매수에 의한 매수 잔량이 0이되면 그 이전의 매수에 의한 매수 잔량에서 남은 매도 수량을 공제할 수 있다. If the purchase quantity is repurchased when the remaining quantity of the corresponding purchase is not 0, the selling quantity by the subsequent selling may be excluded from the remaining quantity of the most recent buying quantity. That is, the selling quantity by selling is deducted until the remaining buying quantity for the most recent buying becomes 0, and when the remaining buying quantity by the most recent buying becomes 0, the selling quantity remaining from the remaining buying quantity by the previous buying. Can be deducted.

이 때, 매수 상대 매도가는 매도하려는 종목의 1주에 대한 매도 단가에 상응할 수 있다. 즉, 매수 상대 매도량에 상응하는 하나하나의 주식은 매수 상대 매도가에 상응하게 매도된 것으로 판단할 수 있다.At this time, the relative selling price may correspond to the selling price for one week of the stock to be sold. That is, it can be judged that each single stock corresponding to the relative selling amount is sold corresponding to the relative selling price.

또한, 매수상대 매도일자는 매수 상대 매도량에 상응하는 매도가 발생한 매도 일자와 시간에 상응할 수 있다. In addition, the date of purchase relative to the sale may correspond to the date and time of the sale in which the sale corresponding to the relative selling amount of the purchase occurred.

이 때, 매수 수수료, 매도 수수료 및 세금은 매수나 매도로 인해 발생하는 금액을 기설정된 비율로 나누어 준 금액에 상응할 수 있다. 이 때, 매수나 매도로 인해 발생하는 금액을 기설정된 비율로 나누어 준 금액을 1원 단위로 절하를 한 뒤 맨 마지막 수량에 실제와 차액을 넣어 줄 수 있다.At this time, the purchase fee, the sale fee, and the tax may correspond to the amount obtained by dividing the amount arising from the purchase or sale at a predetermined rate. At this time, the amount of money generated by buying or selling can be reduced by a unit of 1, and the actual amount and the difference can be added to the last quantity.

또한, 메모리(210)는 후입선출 방식으로 매매차익과 매매차익 누계를 산출하여 저장하기 위해, 매도 발생시마다 각 매도에 따른 정보를 저장하기 위한 필드를 생성하고, 각 필드에 매도수량, 매도가, 매도 상대 매수량, 매도 상대 매수가, 매도상대 매수일자 및 시간, 매도상대 매수수수료 등의 정보를 저장할 수 있다.In addition, the memory 210 generates fields for storing information according to each sale every time a sale occurs, in order to calculate and store the cumulative trading profits and trading profits in a first-in-first-out method. You can store information such as the relative purchase quantity, the relative purchase price, the date and time of the relative purchase, and the relative purchase commission.

이 때, 매도가와 매도 수량은 종목 거래 시 매도하는 거래 단가와 수량을 의미할 수 있다.At this time, the selling price and the selling quantity may mean the trading unit price and quantity to be sold when trading the stock.

이 때, 매수 상대 매도량은 해당 매수의 매수 잔량이 0이 될 때까지 공제된 매도의 매도 수량에 해당할 수 있다. 예를 들어, 종목 A에 대해서 2016년 5월 1일 오전 9시에 발생한 매수의 매수 수량이 100이고, 같은 날 오후 1시와 오후 3시에 각각 발생한 매도의 매도 수량이 50이라고 가정할 수 있다. 이 때, 종목 A에 대한 매수 상대 매도량은 두 번의 매도에 의해 각각 50으로 저장될 수 있다.At this time, the relative selling quantity of the purchase may correspond to the selling quantity of the deducted sales until the remaining quantity of the buying is zero. For example, for item A, it can be assumed that the number of purchases of the purchases that occurred at 9:00 am on May 1, 2016 is 100, and that the sale quantity of the sales that occurred at 1 pm and 3 pm on the same day is 50, respectively. . At this time, the relative selling amount of the purchase for the stock A may be stored as 50 each by two selling.

따라서, 특정 종목에 대한 매수 발생 후, 매도 수량이 해당 매수의 매수 수량보다 많을 경우에는 매수 수량이 매수 상대 매도량에 상응할 수 있다. 즉, 매수 후 발생한 매도에 의해 매수 수량이 모두 소진되고 매수 잔량이 0이 되었기 때문에, 매수 수량 전부가 매수 상대 매도량에 상응할 수 있다.Therefore, when the number of purchases for a specific item is greater than the number of purchases of the corresponding purchase after the occurrence of the purchase, the number of purchases may correspond to the relative amount of the purchase. That is, since the number of purchases is exhausted and the remaining amount of purchases is zero due to the sale occurring after the purchase, all of the purchase quantities may correspond to the relative purchase amount of purchases.

또한, 특정 종목에 대한 매수 발생 후, 매도 수량이 해당 매수의 매수 수량보다 적을 경우에는 매도 수량 자체가 매수 상대 매도량에 상응할 수 있다. 이 때, 매수 잔량이 0이 아니기 때문에 다음 매도에 의한 매도 수량이 매수 상대 매도량이 될 수 있다.In addition, after the purchase of a specific item occurs, when the selling quantity is less than the buying quantity of the corresponding buying quantity, the selling quantity itself may correspond to the relative selling quantity. At this time, since the remaining amount of the purchase is not 0, the selling quantity by the next selling may be the relative selling quantity.

따라서, 한번의 매수에 대응하는 매수 상대 매도량은 경우에 따라 복수개로 저장될 수 있다.Therefore, the relative number of sheets sold relative to the number of sheets may be stored in a plurality.

또한, 매도상대 매수일자는 매도 상대 매수량에 상응하는 매수가 발생한 일자와 시간에 상응할 수 있다.In addition, the date of purchase relative to the sale may correspond to the date and time when the purchase occurred corresponding to the relative amount of the sale.

이 때, 매도 상대 매수가는 매수하려는 종목의 1주에 대한 매수 단가에 상응할 수 있다. 즉, 매도 상대 매수량에 상응하는 하나하나의 주식은 매도 상대 매수가에 상응하게 매수되는 것으로 판단할 수 있다.At this time, the relative selling price may correspond to the buying price for one week of the stock to be purchased. That is, it can be determined that each single stock corresponding to the relative purchase quantity is bought corresponding to the relative purchase quantity.

이 때, 가장 최근에 매수한 물량부터 매도물량으로 하여 매도 상대 매수가를 저장하고, 매도 상대 매수가에 기반하여 매매차익 및 매매차익 누계를 산출할 수 있다.In this case, the relative selling price is stored from the most recently purchased quantity to the selling quantity, and the cumulative trading gains and trading profits can be calculated based on the relative selling quantity.

따라서, 매도 상대 매수량 또한, 매도 발생 시 가장 최근 매수에 의한 매수 수량 중에서 매도에 의한 매도 수량과 같거나 매도 수량보다 작은 값에 상응할 수 있다. 즉, 매도 발생 시 가장 최근의 매수에 의한 매수 수량이 매도에 의한 매도 수량보다 많을 경우, 매도 수량의 값이 매도 상대 매수량에 상응할 수 있다. Therefore, the relative selling quantity relative to the selling may also correspond to a value equal to or smaller than the selling quantity by selling from among the buying quantity by the most recent buying when the selling occurs. That is, when the number of purchases by the most recent purchase when the sale occurs is greater than the number of purchases by the sale, the value of the sale amount may correspond to the relative purchase amount of the sale.

이 때, 특정 매도가의 매도물량이 가장 최근에 매수한 물량보다 많은 경우에 둘 이상의 매도 상대 매수가들을 저장하고, 둘 이상의 매도 상대 매수가들 각각에 대한 매매차익 및 매매차익 누계를 산출할 수 있다.At this time, when the selling quantity of the specific selling is greater than the most recently purchased quantity, two or more selling relative buyings are stored, and the trading gains and trading gains accumulated for each of the two or more selling relative buyings can be calculated.

즉, 매도 발생 시 가장 최근의 매수에 의한 매수 수량이 매도에 의한 매도 수량보다 적을 경우, 가장 최근의 매수에 의한 매수 수량과 함께 이전 매수의 매수 잔량 중에서 남은 매도 수량과 같거나 남은 매도 수량보다 작은 값에 상응할 수 있다. In other words, when the number of purchases by the most recent purchase is less than the number of purchases by selling when the sale occurs, it is equal to or less than the number of remaining sales from the remaining quantity of the previous purchase and the remaining quantity Can correspond to a value.

예를 들어, 매도 발생에 의한 매도 수량이 30이고 가장 최근의 제1 매수에 의한 매수 수량이 20, 제1 매수 이전의 제2 매수에 의한 매수 잔량이 20이라고 가정할 수 있다. 이 때, 매도 상대 매수량은 제1 매수에 의한 매수 수량 20과 제2 매수에 의한 매수 잔량 20에서 남은 매도 수량 10과 같은 10에 상응할 수 있다.For example, it can be assumed that the selling quantity due to the selling is 30, the buying quantity according to the most recent first buying is 20, and the remaining quantity of buying due to the second buying before the first buying is 20. At this time, the relative selling quantity relative to the sale may correspond to 10, such as the remaining quantity 20 from the remaining quantity 20 from the first purchase and the remaining quantity 20 from the second purchase.

즉, 가장 최근의 매수에 의한 매수 수량이 매도에 의한 매도 수량보다 적을 경우에는 매도 상대 매수량이 적어도 둘 이상 존재할 수 있다. 따라서, 매도 상대 매수량과 동일하게 매도 상대 매수가도 둘 이상 존재할 수 있다.That is, when the number of purchases by the most recent purchase is less than the number of purchases by the sale, at least two or more relative purchase amounts may exist. Therefore, there may be two or more relative sellers to sell in the same manner as the relative sellers to sell.

이 때, 매매차익은 특정 매도가에서 매도 상대 매수가를 뺀 금액에 매도수량을 곱한 값에서 매수 수수료, 매도 수수료 및 세금을 빼서 산출될 수 있다.At this time, the trading profit may be calculated by subtracting the purchase fee, the selling fee, and the tax from the value obtained by multiplying the selling amount by the amount obtained by subtracting the relative selling price from the specific selling price.

즉, 매매차익은 하기와 같이 계산할 수 있다.In other words, the trading profit can be calculated as follows.

매매차익 = ((매도가 - 매도 상대 매수가) * 매도 수량) - 매수 수수료 - 매도 수수료 및 세금Trading margin = ((Sell-Sell relative to sell) * Sell quantity)-Buy fee-Sell fee and tax

따라서, 매도 상대 매수가가 둘 이상 존재하면, 각각의 매도 상대 매수가에 대한 매매차익을 계산하여 매매차익 누계에 합산할 수 있다. Therefore, when there are two or more relative sellers to sell, it is possible to calculate the trading profits for each of the relative sellers to sell and sum them up.

이 때, 기존의 회계처리 방식에 의하면 특정 매도가에서 매입평균가를 뺀 금액에 매도수량을 곱한 값에서 매수 수수료, 매도 수수료 및 세금을 빼서 산출할 수 있다. 즉, 가장 최근의 매수에 의한 매수 수량에서 매도에 의한 매도 수량을 공제하는 후입선출 방식이 아닌 특정 종목에 대해 발생한 모든 매수에 의한 매수 수량에서 매도에 의한 매도 수량을 공제한다고 판단할 수 있다.At this time, according to the existing accounting method, it is possible to calculate by subtracting the purchase fee, the selling fee, and the tax from the value obtained by subtracting the average purchase price from the specific selling price and the selling quantity. That is, it can be determined that the selling quantity by selling is deducted from the buying quantity by all buying that occurred for a specific item, rather than a first-in-first-out method that subtracts selling quantity by selling from the most recent buying quantity.

따라서, 기존의 회계처리 방식과 본 발명에 의한 후입선출 방식으로 각각 매매차익을 계산하는 경우 그 값은 상이하게 산출될 수 있다.Therefore, when the trading profit is calculated using the conventional accounting method and the first-in-first-out method according to the present invention, the value can be calculated differently.

이 때, 이전에 주식을 보유하고 있었거나 주식을 타 계좌로부터 이전해 올 경우에는 이전하는 시점의 종목 현재가와 이전하는 수량을 곱한 값이 매수 금액에 상응할 수 있다. 또한, 이체하는 경우에는 이체하는 시점의 종목 현재가와 이체하는 수량을 곱한 값이 매도 금액에 상응할 수 있다.At this time, if you have previously held stocks, or if you have transferred stocks from another account, the value of the stock price at the time of transfer multiplied by the quantity transferred may correspond to the purchase amount. In addition, in the case of a transfer, the value multiplied by the current price of the item at the time of transfer and the amount transferred can correspond to the selling amount.

프로세서(220)는 후입선출 방식의 매매차익 누계를 이용하여 후입선출 방식의 보유종목 평균 매수단가를 산출하고, 보유종목의 평균 매수 단가에 상응하는 투자이익을 산출한다.The processor 220 calculates the average selling price of the stocks of the first-in-first-out method using the cumulative trading gains of the first-in-first-out method, and calculates an investment profit corresponding to the average purchase price of the held item.

이 때, 보유종목 평균 매수 단가는 현재 보유하고 있는 주식의 보유잔량들의 평균 매수가에 상응할 수 있다. At this time, the average purchase price of the stocks held may correspond to the average purchase price of the balances of the stocks currently held.

이 때, 보유종목 평균 매수단가는 해당 종목에 투입한 투입 금액과 매매차익 누계를 합한 값을 보유잔량으로 나눈 값에 상응할 수 있다.At this time, the average selling price of the held item may correspond to a value obtained by dividing the sum of the input amount and the cumulative trading profit in the corresponding item by the remaining amount.

이 때, 특정 종목의 매매로 인하여 발생하는 투자이익의 제1 엘리먼트 및 특정 종목의 보유잔량의 가격변동에 상응하는 투자이익의 제2 엘리먼트를 구분하여 표시할 수 있다. 즉, 투자이익은 특정 종목의 매도시 발생하는 매매차익과 보유하고 있는 주식에 따른 손익을 모두 포함하는 개념에 상응할 수 있다.At this time, the first element of the investment profit arising from the trading of a specific item and the second element of the investment profit corresponding to the price fluctuation of the remaining amount of the specific item may be classified and displayed. In other words, the investment profit may correspond to the concept including both the trading profit generated by the sale of a specific item and the profit or loss according to the stocks held.

이와 같이 투자이익의 제1 엘리먼트와 제2 엘리먼트를 각각 구분하여 제공함으로써 주식을 매도하여 실제로 획득되는 수익에 대한 정보와 함께 보유중인 주식의 가치 변동으로 인한 수익 정보를 동시에 제공하는 것이 가능하다.As described above, by separately providing the first and second elements of the investment profit, it is possible to simultaneously sell the stock and provide the information on the profit actually obtained, as well as the profit information due to the change in the value of the stock held.

이 때, 제1 엘리먼트는 매매차익 누계를 이용하여 산출될 수 있다. 즉, 매도 발생시 마다 누적된 매매차익이 특정 종목에 대한 투자이익의 제1 엘리먼트에 상응할 수 있다. At this time, the first element may be calculated using a cumulative trading profit. In other words, the accumulated trading profit for each sale may correspond to the first element of the investment profit for a specific item.

이 때, 제2 엘리먼트는 보유종목의 평균 매수 단가에서 현재가를 뺀 금액에 보유잔량을 곱하여 산출될 수 있다. 이 때, 보유 종목의 평균 매수 단가는 투입 금액과 매매차익 누계를 합한 값을 보유잔량으로 나눈 값, 즉 한 개의 주식에 대한 금액을 평가할 때 매매차익 누계도 투입 금액으로 고려하여 계산된 값이기 때문에 제2 엘리먼트에는 매도에 의해 발생한 차익이 포함되지 않을 수 있다. 즉, 순수하게 보유잔량에 상응하는 주식들의 가격변동에 따라 발생한 수익만을 의미할 수 있다.At this time, the second element may be calculated by multiplying the remaining amount by the amount obtained by subtracting the current price from the average purchase price of the held item. At this time, the average purchase price of the held item is the value obtained by dividing the sum of the input amount and the cumulative trading profit by the remaining amount, that is, when evaluating the amount for one stock, the cumulative trading profit is also considered as the input amount. The second element may not include margins generated by selling. In other words, it can mean only the revenue generated by the price fluctuations of stocks that are purely equivalent to the remaining balance.

따라서, 제1 엘리먼트와 제2 엘리먼트를 합한 값이 투자이익에 상응할 수 있다.Therefore, the sum of the first element and the second element may correspond to the investment profit.

이 때, 투자이익은 보유잔량과 현재가를 곱한 금액에서 투입금액을 빼는 방법으로도 산출할 수 있는데, 이와 같은 방식으로 투자이익을 산출할 경우에는 기존의 회계처리 방식이나 본 발명의 후입선출 방식과 관계없이 정확하게 투자이익이 산출될 수 있다.At this time, the investment profit can also be calculated by subtracting the input amount from the amount multiplied by the remaining amount and the present price. When calculating the investment profit in this way, it is possible to use the existing accounting method or the last-in, first-out method of the present invention. Regardless, the return on investment can be accurately calculated.

그러나, 기존의 회계처리 방식으로 제1 엘리먼트와 제2 엘리먼트를 산출한 뒤 합산하는 경우에는 정확한 투자이익이 산출되지 않는다. 이는, 기존의 회계처리 방식으로 산출하는 매매차익과 보유잔량의 가격변동에 상응하는 투자이익이 정확하지 않기 때문일 수 있다. However, in the case of calculating and summing the first and second elements using the existing accounting method, an accurate investment profit is not calculated. This may be due to the fact that the investment profit corresponding to the price fluctuation of the trading profit and the remaining balance calculated by the existing accounting method is not accurate.

기존의 회계처리 방식에서는 현재가에서 매입평균가를 뺀 금액에 매도수량을 곱하여 매매차익을 계산한다. 이 때, 매입평균가는 주식, 선물 또는 옵션 등을 매수하는 경우만 고려하여 매입금액을 매수수량으로 나눈 값으로, 언제 매수된 주식인지 고려하지 않는다. In the existing accounting method, trading profit is calculated by multiplying the selling price by the amount obtained by subtracting the average purchase price from the current price. At this time, the average purchase price is considered only when buying stocks, futures or options, and is the value obtained by dividing the purchase amount by the number of purchases.

또한, 기존의 회계처리 방식에서는 현재가에서 매입평균가를 뺀 금액에 보유수량을 곱하는 방식으로 보유잔량의 가격변동에 상응하는 투자이익을 산출한다. 즉, 매수나 매도를 고려하지 않고 무조건 매수하는 경우만 고려하여 산출된 매입평균가를 이용하여 값을 산출하기 때문에 이미 제1 엘리먼트에서 계산되는 매매차익도 포함되는 등 정확한 투자이익이 산출되기 어렵다. In addition, in the existing accounting method, the investment price corresponding to the price fluctuation of the remaining balance is calculated by multiplying the amount obtained by subtracting the average purchase price from the current price. That is, since the value is calculated using the purchase average price calculated by considering only the unconditional purchase without considering the purchase or the sale, it is difficult to calculate an accurate investment profit, including the trading profit already calculated in the first element.

그러나, 본 발명에 따른 후입선출 방식으로 매매차익을 계산하여 제1 엘리먼트의 매매차익 누계를 계산한 뒤, 매매차익 누계를 이용하여 계산된 보유종목의 평균 매수 단가로 제2 엘리먼트의 보유잔량의 가격변동에 상응하는 투자이익을 산출함으로써 제1 엘리먼트와 제2 엘리먼트를 합한 값이 정확한 투자이익에 상응할 수 있다.However, after calculating the trading profit in the first-in-first-out method according to the present invention to calculate the cumulative trading profit of the first element, the price of the remaining amount of the second element as the average purchase price of the held stock calculated using the cumulative trading profit By calculating the investment profit corresponding to the fluctuation, the sum of the first element and the second element may correspond to the correct investment profit.

이 때, 투입 금액은 매수 금액, 매수 수수료, 매도 금액, 매도 수수료 및 세금을 누적한 금액에 상응할 수 있다. 따라서, 투자이익은 매도시 발생한 매매차익에 의한 수익과 현재 남아있는 주식의 보유잔량에 대한 수익을 합산한 금액에 상응할 수 있다.At this time, the input amount may correspond to the purchase amount, the purchase fee, the sale amount, the sale fee, and the accumulated tax. Accordingly, the investment profit may correspond to the sum of the profits from the trading profits generated in each sale and the profits on the remaining stocks.

이 때, 보유잔량은 현재 보유하고 있는 주식의 수를 나타내는 것으로, 매수 수량에서 매도 수량을 뺀 값에 상응할 수 있다. 만약, 이전에 보유하고 있던 주식이 있는 경우에는 이전에 보유하고 있던 주식을 매수 수량에서 매도 수량을 뺀 값에 합하여 보유잔량을 계산할 수 있다.At this time, the remaining balance indicates the number of shares currently held, and may correspond to a value obtained by subtracting the quantity sold. If there is a previously held stock, the remaining stock can be calculated by adding the previously held stock to the purchase quantity minus the selling quantity.

이와 같이 투자이익에 대한 제1 엘리먼트와 제2 엘리먼트를 각각 제공함으로써, 특정 종목에 대한 손익 정보를 보다 다양한 방식으로 제공할 수 있다. As described above, by providing the first element and the second element for the investment profit, respectively, profit/loss information for a specific item can be provided in more various ways.

이 때, 보유단가와 보유종목의 평균 매수 단가를 서로 매칭하여 관리할 수 있다. 이와 같이 매칭된 정보를 기반으로 보유단가와 보유 종목의 평균 매수 단가를 비교할 수 있고, 비교 금액에 따라 종목에 대한 손익 여부을 수월하게 판단할 수 있다. At this time, the unit price can be managed by matching the average purchase price of the holding unit with the holding unit. Based on the matched information, it is possible to compare the holding price and the average buying price of the held item, and it is easy to determine whether the item is profit or loss based on the comparison amount.

이 때, 보유단가는 투입금액을 현재 보유하고 있는 주식의 보유잔량으로 나눈 값에 상응할 수 있다.At this time, the holding unit price may correspond to a value obtained by dividing the input amount by the holding amount of the stocks currently held.

이와 같은 종목 거래 데이터 관리 장치(110)를 이용함으로써 주식, 선물 또는 옵션 등의 종목 거래 시 후입선출 방식에 따른 종목별 또는 시간 별로 보유종목의 손익을 제공할 수 있다.By using the stock transaction data management apparatus 110, when trading stocks, futures, or options, it is possible to provide gains and losses of the stocks held by stocks or time according to the first-in-first-out method.

또한, 후입선출 방식을 기반으로 손익을 산출함으로써 보다 정확하게 종목의 수익 정보를 제공하는 것이 가능할 수 있다.In addition, it may be possible to provide profit information of an item more accurately by calculating profit or loss based on a first-in-first-out method.

도 3은 본 발명의 일실시예에 따른 후입선출 방식의 종목 거래 데이터 관리 방법을 나타낸 동작 흐름도이다.3 is an operation flowchart showing a method of managing item transaction data in a first-in-first-out method according to an embodiment of the present invention.

도 3을 참조하면, 본 발명의 일실시예에 따른 후입선출 방식의 종목 거래 데이터 관리 방법은 특정 종목에 대한 매수가 발생하면 매수가와 매수 수량을 저장한다(S310).Referring to FIG. 3, in the method of managing data of a stock transaction of a first-in-first-out method according to an embodiment of the present invention, when a purchase occurs for a specific item, the number of sheets and the number of sheets are stored (S310).

이 때, 특정 종목에 대한 매수가 발생 시마다 각 매수에 따른 매수 정보를 기록할 필드를 생성하고, 생성된 필드에 매수 정보에 상응하는 매수가나 매수 수량 등을 저장할 수 있다. 예를 들어, 종목 A에 대한 매수가 발생하였다고 가정한다면, 종목 A의 매수에 대한 매수가 필드와 매수 수량 필드에 각각 매수가와 매수 수량을 저장할 수 있다.At this time, whenever a purchase for a specific item occurs, a field for recording purchase information according to each purchase may be generated, and the number of purchases or the number of purchases corresponding to the purchase information may be stored in the generated field. For example, assuming that the purchase for item A has occurred, the number of sheets for the number of sheets in the field A and the number of sheets for the number of sheets A may be stored, respectively.

이 때, 매수가 발생하지 않더라도, 이미 보유하고 있던 주식이나 이체 받은 주식에 대해서도 매수 발생시와 동일하게 필드를 생성하여 동일한 방식으로 매수 정보를 저장할 수 있다. At this time, even if the purchase does not occur, it is possible to store the purchase information in the same way by generating the same field as when the purchase occurs even for stocks already held or transferred stocks.

이 때, 매수가와 매수 수량은 종목 거래 시 매수하는 거래 단가와 수량을 의미할 수 있다. 따라서, 이미 보유하고 있던 주식에 대해서는 해당 종목의 현재 단가를 매수가로 저장하고, 보유하고 있던 주식의 양을 매수 수량으로 저장할 수 있다.At this time, the number of purchases and the number of purchases may refer to the transaction unit price and quantity to be purchased when trading the stock. Therefore, for the stocks already held, the current unit price of the corresponding stock can be stored as a purchase, and the amount of the stocks held can be stored as a purchase quantity.

또한, 본 발명의 일실시예에 따른 후입선출 방식의 종목 거래 데이터 관리 방법은 특정 종목에 대한 특정 매도가의 매도가 발생하면 후입선출 방식으로 매매차익 및 매매차익 누계를 산출하여 저장한다(S320).In addition, in the method for managing data of stocks in a first-in-first-out method according to an embodiment of the present invention, when a sale of a specific selling occurs for a specific item, the cumulative trading gains and trading profits are calculated and stored in a first-in-first-out method (S320).

이 때, 종목매도 발생 시 마다 후입선출 방식으로 매매차익과 매매차익 누계를 산출하기 위해서, 각 매수 마다 매수 잔량, 매수 상대 매도량, 매수 상대 매도가, 매수상대 매도일자 및 시간, 매수 수수료, 매도 수수료 및 세금 등의 정보를 저장할 수 있다.At this time, in order to calculate the cumulative trading profit and trading profit every time a stock sale occurs, the remaining balance of each purchase, the relative amount of the purchase, the relative price of the purchase, the date and time of the purchase relative, the purchase fee, the selling fee And information such as taxes.

이 때, 매매차익은 매수와 매도로 인해 발생하는 손익 금액을 의미할 수 있으며, 이를 누적하여 합산한 것이 매매차익 누계에 상응할 수 있다.At this time, the trading profit may mean the amount of profit or loss arising from the purchase and sale, and the cumulative sum of these may correspond to the cumulative trading profit.

이 때, 매수 잔량은 매수한 매수 수량에서, 매수 이후 발생한 매도의 매수 수량을 빼고 남은 값에 상응할 수 있다. 따라서, 각 매수에 대해서, 매수 잔량이 0이 될 때까지 매수 잔량에서 매수 이후의 매도에 의한 매도 수량을 빼줄 수 있다.At this time, the remaining amount of the purchase may correspond to the remaining value by subtracting the number of purchases of the sale occurring after the purchase, from the number of purchases purchased. Therefore, for each purchase, it is possible to subtract the selling quantity by the selling after the buying from the remaining buying quantity until the remaining buying quantity becomes 0.

만약, 해당 매수의 매수 잔량이 0이 아닌 상태에서 다시 매수가 발생한다면, 이 후의 매도에 의한 매도 수량은 가장 최근에 발생한 매수의 매수 잔량에서 빼줄 수 있다. 즉, 매도에 의한 매도 수량은 가장 최근의 매수에 대한 매수 잔량이 0이 될 때까지 공제해 주고, 가장 최근의 매수에 의한 매수 잔량이 0이되면 그 이전의 매수에 의한 매수 잔량에서 남은 매도 수량을 공제할 수 있다. If the purchase quantity is repurchased in a state where the remaining quantity of the corresponding purchase is not 0, the selling quantity due to the subsequent selling can be subtracted from the remaining quantity of the most recent buying quantity. That is, the selling quantity by selling is deducted until the remaining buying quantity for the most recent buying becomes 0, and when the remaining buying quantity by the most recent buying becomes 0, the selling quantity remaining from the remaining buying quantity by the previous buying. Can be deducted.

이 때, 매수 상대 매도가는 매도하려는 종목의 1주에 대한 매도 단가에 상응할 수 있다. 즉, 매수 상대 매도량에 상응하는 하나하나의 주식은 매수 상대 매도가에 상응하게 매도된 것으로 판단할 수 있다.At this time, the relative selling price may correspond to the selling price for one week of the stock to be sold. That is, it can be judged that each single stock corresponding to the relative selling amount is sold corresponding to the relative selling price.

또한, 매수상대 매도일자는 매수 상대 매도량에 상응하는 매도가 발생한 매도 일자와 시간에 상응할 수 있다. In addition, the date of purchase relative to the sale may correspond to the date and time of the sale in which the sale corresponding to the relative selling amount of the purchase occurred.

이 때, 매수 수수료, 매도 수수료 및 세금은 매수나 매도로 인해 발생하는 금액을 기설정된 비율로 나누어 준 금액에 상응할 수 있다. 이 때, 매수나 매도로 인해 발생하는 금액을 기설정된 비율로 나누어 준 금액을 1원 단위로 절하를 한 뒤 맨 마지막 수량에 실제와 차액을 넣어 줄 수 있다.At this time, the purchase fee, the sale fee, and the tax may correspond to the amount obtained by dividing the amount arising from the purchase or sale at a predetermined rate. At this time, the amount of money generated by buying or selling can be reduced by a unit of 1, and the actual amount and the difference can be added to the last quantity.

또한, 후입선출 방식으로 매매차익과 매매차익 누계를 산출하여 저장하기 위해, 매도 발생시마다 매도수량, 매도가, 매도 상대 매수량, 매도 상대 매수가, 매도상대 매수일자 및 시간, 매도상대 매수수수료 등의 정보를 저장할 수 있다.In addition, in order to calculate and store cumulative trading profits and trading profits in a first-in-first-out method, each time a sale occurs, the amount of the sale, the amount of the sale, the amount of the relative sale, the date of the relative sale, the date and time of the purchase relative to the seller, the time of the seller relative Information can be stored.

이 때, 매도가와 매도 수량은 종목 거래 시 매도하는 거래 단가와 수량을 의미할 수 있다.At this time, the selling price and the selling quantity may mean the trading unit price and quantity to be sold when trading the stock.

이 때, 매수 상대 매도량은 해당 매수의 매수 잔량이 0이 될 때까지 공제된 매도의 매도 수량에 해당할 수 있다. 예를 들어, 종목 A에 대해서 2016년 5월 1일 오전 9시에 발생한 매수의 매수 수량이 100이고, 같은 날 오후 1시와 오후 3시에 각각 발생한 매도의 매도 수량이 50이라고 가정할 수 있다. 이 때, 종목 A에 대한 매수 상대 매도량은 두 번의 매도에 의해 각각 50으로 저장될 수 있다.At this time, the relative selling quantity of the purchase may correspond to the selling quantity of the deducted sales until the remaining quantity of the buying is zero. For example, for item A, it can be assumed that the number of purchases of the purchases that occurred at 9:00 am on May 1, 2016 is 100, and that the sale quantity of the sales that occurred at 1 pm and 3 pm on the same day is 50, respectively. . At this time, the relative selling amount of the purchase for the stock A may be stored as 50 each by two selling.

따라서, 특정 종목에 대한 매수 발생 후, 매도 수량이 해당 매수의 매수 수량보다 많을 경우에는 매수 수량이 매수 상대 매도량에 상응할 수 있다. 즉, 매수 후 발생한 매도에 의해 매수 수량이 모두 소진되고 매수 잔량이 0이 되었기 때문에, 매수 수량 전부가 매수 상대 매도량에 상응할 수 있다.Therefore, when the number of purchases for a specific item is greater than the number of purchases of the corresponding purchase after the occurrence of the purchase, the number of purchases may correspond to the relative amount of the purchase. That is, since the number of purchases is exhausted and the remaining amount of purchases is zero due to the sale occurring after the purchase, all of the purchase quantities may correspond to the relative purchase amount of purchases.

또한, 특정 종목에 대한 매수 발생 후, 매도 수량이 해당 매수의 매수 수량보다 적을 경우에는 매도 수량 자체가 매수 상대 매도량에 상응할 수 있다. 이 때, 매수 잔량이 0이 아니기 때문에 다음 매도에 의한 매도 수량이 매수 상대 매도량이 될 수 있다.In addition, after the purchase of a specific item occurs, when the selling quantity is less than the buying quantity of the corresponding buying quantity, the selling quantity itself may correspond to the relative selling quantity. At this time, since the remaining amount of the purchase is not 0, the selling quantity by the next selling may be the relative selling quantity.

따라서, 한번의 매수에 대응하는 매수 상대 매도량은 경우에 따라 복수개로 저장될 수 있다.Therefore, the relative number of sheets sold relative to the number of sheets may be stored in a plurality.

또한, 매도상대 매수일자는 매도 상대 매수량에 상응하는 매수가 발생한 일자와 시간에 상응할 수 있다.In addition, the date of purchase relative to the sale may correspond to the date and time when the purchase occurred corresponding to the relative amount of the sale.

이 때, 매도 상대 매수가는 매수하려는 종목의 1주에 대한 매수 단가에 상응할 수 있다. 즉, 매도 상대 매수량에 상응하는 하나하나의 주식은 매도 상대 매수가에 상응하게 매수되는 것으로 판단할 수 있다.At this time, the relative selling price may correspond to the buying price for one week of the stock to be purchased. That is, it can be determined that each single stock corresponding to the relative purchase quantity is bought corresponding to the relative purchase quantity.

이 때, 가장 최근에 매수한 물량부터 매도에 상응하는 매도물량으로 하여 매도 상대 매수가를 저장하고, 매도 상대 매수가에 기반하여 매매차익 및 매매차익 누계를 산출할 수 있다.At this time, from the most recently purchased quantity to the selling quantity corresponding to the selling amount, the relative selling price is stored, and the trading profit and the cumulative trading profit can be calculated based on the selling relative purchase price.

따라서, 매도 상대 매수량 또한, 매도 발생 시 가장 최근 매수에 의한 매수 수량 중에서 매도에 의한 매도 수량과 같거나 매도 수량보다 작은 값에 상응할 수 있다. 즉, 매도 발생 시 가장 최근의 매수에 의한 매수 수량이 매도에 의한 매도 수량보다 많을 경우, 매도 수량의 값이 매도 상대 매수량에 상응할 수 있다.Therefore, the relative selling quantity relative to the selling may also correspond to a value equal to or smaller than the selling quantity by selling from among the buying quantity by the most recent buying when the selling occurs. That is, when the number of purchases by the most recent purchase when the sale occurs is greater than the number of purchases by the sale, the value of the sale amount may correspond to the relative purchase amount of the sale.

이 때, 특정 매도가의 매도물량이 가장 최근에 매수한 물량보다 많은 경우에 둘 이상의 매도 상대 매수가들을 저장하고, 둘 이상의 매도 상대 매수가들 각각에 대한 매매차익 및 매매차익 누계를 산출할 수 있다.At this time, when the selling quantity of the specific selling is greater than the most recently purchased quantity, two or more selling relative buyings are stored, and the trading gains and trading gains accumulated for each of the two or more selling relative buyings can be calculated.

즉, 매도 발생 시 가장 최근의 매수에 의한 매수 수량이 매도에 의한 매도 수량보다 적을 경우, 가장 최근의 매수에 의한 매수 수량과 함께 이전 매수의 매수 잔량 중에서 남은 매도 수량과 같거나 남은 매도 수량보다 작은 값에 상응할 수 있다. In other words, when the number of purchases by the most recent purchase is less than the number of purchases by selling when the sale occurs, it is equal to or less than the number of remaining sales from the remaining quantity of the previous purchase and the remaining quantity Can correspond to a value.

예를 들어, 매도 발생에 의한 매도 수량이 30이고 가장 최근의 제1 매수에 의한 매수 수량이 20, 제1 매수 이전의 제2 매수에 의한 매수 잔량이 20이라고 가정할 수 있다. 이 때, 매도 상대 매수량은 제1 매수에 의한 매수 수량 20과 제2 매수에 의한 매수 잔량 20에서 남은 매도 수량 10과 같은 10에 상응할 수 있다.For example, it can be assumed that the selling quantity due to the selling is 30, the buying quantity according to the most recent first buying is 20, and the remaining quantity of buying due to the second buying before the first buying is 20. At this time, the relative selling quantity relative to the sale may correspond to 10, such as the remaining quantity 20 from the remaining quantity 20 from the first purchase and the remaining quantity 20 from the second purchase.

즉, 가장 최근의 매수에 의한 매수 수량이 매도에 의한 매도 수량보다 적을 경우에는 매도 상대 매수량이 적어도 둘 이상 존재할 수 있다. 따라서, 매도 상대 매수량과 동일하게 매도 상대 매수가도 둘 이상 존재할 수 있다.That is, when the number of purchases by the most recent purchase is less than the number of purchases by the sale, at least two or more relative purchase amounts may exist. Therefore, there may be two or more relative sellers to sell in the same manner as the relative sellers to sell.

이 때, 매매차익은 특정 매도가에서 매도 상대 매수가를 뺀 금액에 매도수량을 곱한 값에서 매수 수수료, 매도 수수료 및 세금을 빼서 산출될 수 있다.At this time, the trading profit may be calculated by subtracting the purchase fee, the selling fee, and the tax from the value obtained by multiplying the selling amount by the amount obtained by subtracting the relative selling price from the specific selling price.

즉, 매매차익은 하기와 같이 계산할 수 있다.In other words, the trading profit can be calculated as follows.

매매차익 = ((매도가 = 매도 상대 매수가) * 매도 수량) - 매수 수수료 - 매도 수수료 및 세금Trading margin = ((Sell = Sell relative to sell) * Sell quantity)-Buy fee-Sell fee and tax

따라서, 매도 상대 매수가가 둘 이상 존재하면, 각각의 매도 상대 매수가에 대한 매매차익을 계산하여 매매차익 누계에 합산할 수 있다.Therefore, when there are two or more relative sellers to sell, it is possible to calculate the trading profits for each of the relative sellers to sell and sum them up.

이 때, 기존의 회계처리 방식에 의하면 특정 매도가에서 매입평균가를 뺀 금액에 매도수량을 곱한 값에서 매수 수수료, 매도 수수료 및 세금을 빼서 산출할 수 있다. 즉, 가장 최근의 매수에 의한 매수 수량에서 매도에 의한 매도 수량을 공제하는 후입선출 방식이 아닌 특정 종목에 대해 발생한 모든 매수에 의한 매수 수량에서 매도에 의한 매도 수량을 공제한다고 판단할 수 있다.At this time, according to the existing accounting method, it is possible to calculate by subtracting the purchase fee, the selling fee, and the tax from the value obtained by subtracting the average purchase price from the specific selling price and the selling quantity. That is, it can be determined that the selling quantity by selling is deducted from the buying quantity by all buying that occurred for a specific item, rather than a first-in-first-out method that subtracts selling quantity by selling from the most recent buying quantity.

따라서, 기존의 회계처리 방식과 본 발명에 의한 후입선출 방식으로 각각 매매차익을 계산하는 경우 그 값은 상이하게 산출될 수 있다.Therefore, when the trading profit is calculated using the conventional accounting method and the first-in-first-out method according to the present invention, the value can be calculated differently.

이 때, 이전에 주식을 보유하고 있었거나 주식을 타 계좌로부터 이전해 올 경우에는 이전하는 시점의 종목 현재가와 이전하는 수량을 곱한 값이 매수 금액에 상응할 수 있다. 또한, 이체하는 경우에는 이체하는 시점의 종목 현재가와 이체하는 수량을 곱한 값이 매도 금액에 상응할 수 있다.At this time, if you have previously held stocks, or if you have transferred stocks from another account, the value of the stock price at the time of transfer multiplied by the quantity transferred may correspond to the purchase amount. In addition, in the case of a transfer, the value multiplied by the current price of the item at the time of transfer and the amount transferred can correspond to the selling amount.

또한, 본 발명의 일실시예에 따른 후입선출 방식의 종목 거래 데이터 관리 방법은 매매차익 누계를 이용하여 후입선출 방식의 보유 종목의 평균 매수단가를 산출한다(S330).In addition, in the method of managing the transaction data of the first-in-first-out method according to an embodiment of the present invention, the average selling price of the held items in the first-in-first-out method is calculated using the cumulative trading profit (S330).

이 때, 보유종목 평균 매수 단가는 현재 보유하고 있는 주식의 보유잔량들의 평균 매수가에 상응할 수 있다. At this time, the average purchase price of the stocks held may correspond to the average purchase price of the balances of the stocks currently held.

이 때, 보유종목 평균 매수단가는 해당 종목에 투입한 투입 금액과 매매차익 누계를 합한 값을 보유잔량으로 나눈 값에 상응할 수 있다. At this time, the average selling price of the held item may correspond to a value obtained by dividing the sum of the input amount and the cumulative trading profit in the corresponding item by the remaining amount.

또한, 본 발명의 일실시예에 따른 후입선출 방식의 종목 거래 데이터 관리 방법은 보유종목의 평균 매수 단가에 상응하는 투자이익을 산출한다(S340).In addition, the method of managing data of a stock transaction of a first-in-first-out method according to an embodiment of the present invention calculates an investment profit corresponding to the average purchase price of the stock (S340).

이 때, 특정 종목의 매매로 인하여 발생하는 투자이익의 제1 엘리먼트 및 특정 종목의 보유잔량의 가격변동에 상응하는 투자이익의 제2 엘리먼트를 구분하여 표시할 수 있다. 즉, 투자이익은 특정 종목의 매도시 발생하는 매매차익과 보유하고 있는 주식에 따른 손익을 모두 포함하는 개념에 상응할 수 있다.At this time, the first element of the investment profit arising from the trading of a specific item and the second element of the investment profit corresponding to the price fluctuation of the remaining amount of the specific item may be classified and displayed. In other words, the investment profit may correspond to the concept including both the trading profit generated by the sale of a specific item and the profit or loss according to the stocks held.

이와 같이 투자이익의 제1 엘리먼트와 제2 엘리먼트를 각각 구분하여 제공함으로써 주식을 매도하여 실제로 획득되는 수익에 대한 정보와 함께 보유중인 주식의 가치 변동으로 인한 수익 정보를 동시에 제공하는 것이 가능하다.As described above, by separately providing the first and second elements of the investment profit, it is possible to simultaneously sell the stock and provide the information on the profit actually obtained, as well as the profit information due to the change in the value of the stock held.

이 때, 제1 엘리먼트는 매매차익 누계를 이용하여 산출될 수 있다. 즉, 매도 발생시 마다 누적된 매매차익이 특정 종목에 대한 투자이익의 제1 엘리먼트에 상응할 수 있다. At this time, the first element may be calculated using a cumulative trading profit. In other words, the accumulated trading profit for each sale may correspond to the first element of the investment profit for a specific item.

이 때, 제2 엘리먼트는 보유종목의 평균 매수 단가에서 현재가를 뺀 금액에 보유잔량을 곱하여 산출될 수 있다. 이 때, 보유 종목의 평균 매수 단가는 투입 금액과 매매차익 누계를 합한 값을 보유잔량으로 나눈 값, 즉 한 개의 주식에 대한 금액을 평가할 때 매매차익 누계도 투입 금액으로 고려하여 계산된 값이기 때문에 제2 엘리먼트에는 매도에 의해 발생한 차익이 포함되지 않을 수 있다. 즉, 순수하게 보유잔량에 상응하는 주식들의 가격변동에 따라 발생한 수익만을 의미할 수 있다.At this time, the second element may be calculated by multiplying the remaining amount by the amount obtained by subtracting the current price from the average purchase price of the held item. At this time, the average purchase price of the held item is the value obtained by dividing the sum of the input amount and the cumulative trading profit by the remaining amount, that is, when evaluating the amount for one stock, the cumulative trading profit is also considered as the input amount. The second element may not include margins generated by selling. In other words, it can mean only the revenue generated by the price fluctuations of stocks that are purely equivalent to the remaining balance.

따라서, 제1 엘리먼트와 제2 엘리먼트를 합한 값이 투자이익에 상응할 수 있다.Therefore, the sum of the first element and the second element may correspond to the investment profit.

이 때, 투자이익은 보유잔량과 현재가를 곱한 금액에서 투입금액을 빼는 방법으로도 산출할 수 있는데, 이와 같은 방식으로 투자이익을 산출할 경우에는 기존의 회계처리 방식이나 본 발명의 후입선출 방식과 관계없이 정확하게 투자이익이 산출될 수 있다.At this time, the investment profit can also be calculated by subtracting the input amount from the amount multiplied by the remaining amount and the present price. When calculating the investment profit in this way, it is possible to use the existing accounting method or the last-in, first-out method of the present invention. Regardless, the return on investment can be accurately calculated.

그러나, 기존의 회계처리 방식으로 제1 엘리먼트와 제2 엘리먼트를 산출한 뒤 합산하는 경우에는 정확한 투자이익이 산출되지 않는다. 이는, 기존의 회계처리 방식으로 산출하는 매매차익과 보유잔량의 가격변동에 상응하는 투자이익이 정확하지 않기 때문일 수 있다. However, in the case of calculating and summing the first and second elements using the existing accounting method, an accurate investment profit is not calculated. This may be due to the fact that the investment profit corresponding to the price fluctuation of the trading profit and the remaining balance calculated by the existing accounting method is not accurate.

기존의 회계처리 방식에서는 현재가에서 매입평균가를 뺀 금액에 매도수량을 곱하여 매매차익을 계산한다. 이 때, 매입평균가는 주식, 선물 또는 옵션 등을 매수하는 경우만 고려하여 매입금액을 매수수량으로 나눈 값으로, 언제 매수된 주식인지 고려하지 않는다. In the existing accounting method, trading profit is calculated by multiplying the selling price by the amount obtained by subtracting the average purchase price from the current price. At this time, the average purchase price is considered only when buying stocks, futures or options, and is the value obtained by dividing the purchase amount by the number of purchases.

또한, 기존의 회계처리 방식에서는 현재가에서 매입평균가를 뺀 금액에 보유수량을 곱하는 방식으로 보유잔량의 가격변동에 상응하는 투자이익을 산출한다. 즉, 매수나 매도를 고려하지 않고 무조건 매수하는 경우만 고려하여 산출된 매입평균가를 이용하여 값을 산출하기 때문에 이미 제1 엘리먼트에서 계산되는 매매차익도 포함되는 등 정확한 투자이익이 산출되기 어렵다. In addition, in the existing accounting method, the investment price corresponding to the price fluctuation of the remaining balance is calculated by multiplying the amount obtained by subtracting the average purchase price from the current price. That is, since the value is calculated using the purchase average price calculated by considering only the unconditional purchase without considering the purchase or the sale, it is difficult to calculate an accurate investment profit, including the trading profit already calculated in the first element.

그러나, 본 발명에 따른 후입선출 방식으로 매매차익을 계산하여 제1 엘리먼트의 매매차익 누계를 계산한 뒤, 매매차익 누계를 이용하여 계산된 보유종목의 평균 매수 단가로 제2 엘리먼트의 보유잔량의 가격변동에 상응하는 투자이익을 산출함으로써 제1 엘리먼트와 제2 엘리먼트를 합한 값이 정확한 투자이익에 상응할 수 있다.However, after calculating the trading profit in the first-in-first-out method according to the present invention to calculate the cumulative trading profit of the first element, the price of the remaining amount of the second element as the average purchase price of the held stock calculated using the cumulative trading profit By calculating the investment profit corresponding to the fluctuation, the sum of the first element and the second element may correspond to the correct investment profit.

이 때, 투입 금액은 매수 금액, 매수 수수료, 매도 금액, 매도 수수료 및 세금을 누적한 금액에 상응할 수 있다. 따라서, 투자이익은 매도시 발생한 매매차익에 의한 수익과 현재 남아있는 주식의 보유잔량에 대한 수익을 합산한 금액에 상응할 수 있다.At this time, the input amount may correspond to the purchase amount, the purchase fee, the sale amount, the sale fee, and the accumulated tax. Accordingly, the investment profit may correspond to the sum of the profits from the trading profits generated in each sale and the profits on the remaining stocks.

이 때, 보유잔량은 현재 보유하고 있는 주식의 수를 나타내는 것으로, 매수 수량에서 매도 수량을 뺀 값에 상응할 수 있다. 만약, 이전에 보유하고 있던 주식이 있는 경우에는 이전에 보유하고 있던 주식을 매수 수량에서 매도 수량을 뺀 값에 합하여 보유잔량을 계산할 수 있다.At this time, the remaining balance indicates the number of shares currently held, and may correspond to a value obtained by subtracting the quantity sold. If there is a previously held stock, the remaining stock can be calculated by adding the previously held stock to the purchase quantity minus the selling quantity.

이와 같이 투자이익에 대한 제1 엘리먼트와 제2 엘리먼트를 각각 제공함으로써, 특정 종목에 대한 손익 정보를 보다 다양한 방식으로 제공할 수 있다.As described above, by providing the first element and the second element for the investment profit, respectively, profit/loss information for a specific item can be provided in more various ways.

이 때, 보유단가와 보유종목의 평균 매수 단가를 서로 매칭하여 관리할 수 있다. 이와 같이 매칭된 정보를 기반으로 보유단가와 보유 종목의 평균 매수 단가를 비교할 수 있고, 비교 금액에 따라 종목에 대한 손익 여부을 수월하게 판단할 수 있다. At this time, the unit price can be managed by matching the average purchase price of the holding unit with the holding unit. Based on the matched information, it is possible to compare the holding price and the average buying price of the held item, and it is easy to determine whether the item is profit or loss based on the comparison amount.

이 때, 보유단가는 투입금액을 현재 보유하고 있는 주식의 보유잔량으로 나눈 값에 상응할 수 있다.At this time, the holding unit price may correspond to a value obtained by dividing the input amount by the holding amount of the stocks currently held.

이와 같은 종목 거래 데이터 관리 방법을 통해 주식, 선물 또는 옵션 등의 종목 거래 시 후입선출 방식에 따른 종목별 또는 시간 별로 보유종목의 손익을 제공할 수 있다.Through this method of managing trading data, it is possible to provide profit or loss of stocks held by stocks, futures, or options according to the first-in-first-out method.

또한, 후입선출 방식을 기반으로 손익을 산출함으로써 보다 정확하게 종목의 수익 정보를 제공하는 것이 가능할 수 있다.In addition, it may be possible to provide profit information of an item more accurately by calculating profit or loss based on a first-in-first-out method.

도 4는 본 발명에 따른 종목 거래 데이터 관리 방법을 이용한 종목 거래 데이터의 일 예를 나타낸 도면이다.4 is a diagram showing an example of stock trading data using the stock trading data management method according to the present invention.

도 4를 참조하면, 본 발명에 따른 종목 거래 데이터 관리 방법을 이용한 종목 거래 데이터는, 특정 종목의 매수가 발생할 때마다 매수 수량과 매수가에 상응하는 필드에 각각 해당 값을 저장할 수 있다. Referring to FIG. 4, the stock trading data using the stock trading data management method according to the present invention may store corresponding values in fields corresponding to the number of purchases and the number of purchases each time a purchase of a specific item occurs.

이 때, 본 발명에 따른 종목 거래 데이터 관리 방법은 매도 발생 시 후입선출 방식을 기반으로 데이터를 입력할 수 있다. At this time, the method for managing the item transaction data according to the present invention may input data based on a first-in-first-out method when a sale occurs.

이 때, 후입선출 방식은, 매도 발생 시 가장 최근에 매수한 매수 수량에서 매도 수량을 공제하는 방식에 상응할 수 있다.In this case, the first-in-first-out method may correspond to a method of subtracting the selling quantity from the most recently purchased quantity when the selling occurs.

예를 들어, 도 4에 도시된 종목 거래 데이터에서 2015년 11월 19일에 체결된 매매를 확인하면, 해당 종목에 대해 매도가 9,005원, 매도 수량 23개에 상응하게 매도가 발생한 것을 확인할 수 있다. 이 때, 매도 수량 23개는 해당 매도가 발생한 2015년 11월 19일로부터 가장 최근인 2015년 11월 16일에 매수된 매수 수량 157개로부터 공제된 것일 수 있다. For example, when checking the trading concluded on November 19, 2015 in the item trading data shown in FIG. 4, it can be confirmed that the selling occurred corresponding to the selling price corresponding to 9,005 won and 23 selling quantities. . At this time, the 23 selling quantity may be deducted from the 157 buying quantity purchased on November 16, 2015, which is the most recent from November 19, 2015.

다른 예를 들어, 도 4에 도시된 종목 거래 데이터에서 2016년 1월 19일에 체결된 매매를 확인하면, 해당 종목에 대해 매도가 8,160원, 매도 수량 23개에 상응하게 매도가 발생한 것을 확인할 수 있다. 이 때, 매도 수량 23개는 해당 매도가 발생한 2016년 1월 19일로부터 가장 최근인 2016년 1월 18일에 매수된 매수 수량 24개로부터 공제된 것일 수 있다.For another example, when checking the trading concluded on January 19, 2016 in the stock trading data shown in FIG. 4, it can be confirmed that the selling occurred for the corresponding stock at 8,160 won and 23 selling quantities. have. At this time, the 23 selling quantity may be deducted from the 24 buying quantity purchased on January 18, 2016, which is the most recent from January 19, 2016 when the corresponding selling occurred.

이와 같이, 매도 발생시마다 매도 시점으로부터 가장 최근에 매수된 매수 수량으로부터 매도 물량이 공제되기 때문에, 매매차익을 계산하기 위해서는 매도 발생시마다 매도 상대 매수가가 저장될 수 있다.As described above, since the selling quantity is subtracted from the most recently purchased buying quantity from the selling timing each time a selling occurs, in order to calculate the trading profit, the selling relative selling may be stored each selling.

예를 들어, 도 4에 도시된 종목 거래 데이터에서 2015년 11월 19일에 발생한 매도는 가장 최근인 2015년 11월 16일에 발생한 매수의 매수가 8,740원(A)을 매도 상대 매수가로 저장할 수 있다. 또한, 그 다음 발생한 2015년 11월 26일의 매도 또한 2015년 11월 16일에 발생한 매수의 매수가 8,740(A)을 매도 상대 매수가로 저장할 수 있다. 이 때, 2015년 11월 16일에 발생한 매수의 매수 수량이, 매수 이후 발생한 두 번의 매도에 대한 매도 물량을 모두 커버할 수 있는 수량이므로, 두 번의 매도는 각각 하나씩의 매도 상대 매수가가 저장될 수 있다. For example, in the stock trading data shown in FIG. 4, the sale that occurred on November 19, 2015 is the most recent purchase on November 16, 2015, and the purchase of 8,740 won (A) can be stored as a relative purchase. have. In addition, the next selling on November 26, 2015 may also store 8,740 (A) as the selling relative to the number of buying on November 16, 2015. At this time, since the number of purchases of the number of purchases that occurred on November 16, 2015 is the amount that can cover all the sales volumes for the two sales that occurred after the purchase, the number of purchases relative to each of the two sales can be stored. have.

그러나, 도 4에 도시된 종목 거래 데이터에서 2016년 2월 25일에 발생한 매도의 매도 상대 매수가 필드(420)를 확인하면, 총 5개의 매도 상대 매수가가 저장된 것을 확인할 수 있다. However, in the stock transaction data shown in FIG. 4, when the relative seller number of the seller of the sale occurred on February 25, 2016, the field 420 can be confirmed that a total of five relative seller sellers are stored.

이는, 2016년 2월 25일 발생한 매도로부터 가장 최근인 2016년 2월 11일에 발생한 매수의 매수 수량이, 이미 2016년 2월 16일에 발생한 매도에 의해 대부분 공제되었기 때문이다. 즉, 2016년 2월 25일에 발생한 매도의 매도 물량은 23개인데, 가장 최근인 2016년 2월 11일에 발생한 매수의 매수 잔량이 1개였기 때문에, 2016년 2월 11일에 발생한 매수보다 이전에 발생한 매수들의 매수 잔량에서 매도 물량이 공제된 것을 확인할 수 있다.This is because the most recent purchase quantity on February 11, 2016 from the sale on February 25, 2016, was mostly deducted by the sale on February 16, 2016. In other words, the sales volume of the sale that occurred on February 25, 2016 is 23, but the most recent purchase on February 11, 2016 was 1, so the purchase amount on February 11, 2016 It can be seen that the sales volume was subtracted from the remaining balance of the previous purchases.

따라서, 도 4에 도시된 2016년 2월 25일에 발생한 매도는, 2016년 2월 11일에 발생한 매수의 매수가 7,915원(I), 2016년 1월 26일에 발생한 매수의 매수가 7,915원(H), 2016년 1월 20일에 발생한 매수의 매수가 7,915원(G), 2016년 1월 18일에 발생한 매수의 매수가 7,905(F)원 및 2016년 1월 7일에 발생한 매수의 매수가 8,325원(F)을 모두 매도 상대 매수가로 저장할 수 있다.Therefore, in the sales that occurred on February 25, 2016, shown in FIG. 4, the number of purchases on February 11, 2016 was 7,915 won (I), and the number of purchases on January 26, 2016 was 7,915 won. (H), the number of purchases that occurred on January 20, 2016 was 7,915 won (G), the number of purchases that occurred on January 18, 2016 was 7,905 (F), and the number of purchases that occurred on January 7, 2016 You can save all 8,325 won (F) as a relative purchase.

도 5 내지 도 6은 본 발명에 따른 종목 거래 데이터 관리 방법을 이용한 종목 거래 데이터의 다른 예를 나타낸 도면이다.5 to 6 are views showing another example of stock trading data using the stock trading data management method according to the present invention.

도 5 내지 도 6을 참조하면, 본 발명의 종목 거래 데이터는 매도 발생시마다 대응하는 매수의 필드에 매수 상대 매도가를 저장할 수 있다. 5 to 6, the stock trading data of the present invention may store the relative purchase price in the field of the corresponding purchase every time a sale occurs.

예를 들어, 도 6에 도시된 종목 거래 데이터에서 2016년 2월 16일에 발생한 매도(610), 2016년 2월 25일에 발생한 매도(620) 및 2016년 3월 10일에 발생한 매도(630)의 매도 수량을 모두 합치면, 세 번의 매도(610, 620, 630)로부터 가장 최근인 2016년 2월 11일에 발생한 매수의 매수 수량을 초과하는 것을 알 수 있다. 이와 같은 경우에는, 2016년 2월 11일에 발생한 매수와 그 이전에 발생한 적어도 하나의 매수의 매수 잔량을 확인하여 매도를 수행할 수 있다. For example, in the stock transaction data shown in FIG. 6, the sales 610 that occurred on February 16, 2016, the sales 620 that occurred on February 25, 2016, and the sales that occurred on March 10, 2016 (630). If you combine all the sales quantities of ), you can see that the three sales (610, 620, 630) exceed the number of purchases of the most recent purchase on February 11, 2016. In such a case, the selling may be performed by checking the remaining amount of the number of purchases that occurred on February 11, 2016, and at least one number of purchases that occurred before that.

즉, 2016년 2월 16일에 발생한 매도(610)의 매도 수량 23개(A)는 가장 최근인 2016년 2월 11일에 발생한 매수의 매수 물량 24개로 모두 공제함으로써, 2016년 2월 11일에 발생한 매수의 매수 잔량은 1개로 저장될 수 있다. In other words, 23 sales (A) of the sales (610) that occurred on February 16, 2016 are deducted as 24 of the most recent purchases of February 11, 2016. The remaining amount of the number of purchases generated in may be stored as one.

이 때, 2016년 2월 11일에 발생한 매수의 매수 상대 매도량 필드에는 2016년 2월 16일에 발생한 매도(610)의 매도 수량 23개(A)에 상응하는 매수 상대 매도량 23개(A)가 저장될 수 있다. 또한, 2016년 2월 11일에 발생한 매수의 매수 상대 매도가 필드에는 2016년 2월 16일에 발생한 매도(610)의 매도가 8,155원이 매수 상대 매도가로 저장될 수 있다.At this time, in the field of the relative amount of sales of the number of purchases that occurred on February 11, 2016, the number of relative sales (23) of the number of sales corresponding to 23 (A) of the number of sales of sales (610) occurred on February 16, 2016. Can be saved. In addition, in the field of the relative selling of the number of purchases that occurred on February 11, 2016, the selling of the sale (610) that occurred on February 16, 2016 may be stored as a relative selling price of 8,155 won.

이 후, 2016년 2월 25일에 발생한 매도(620)의 매도 수량 23(B)개는 가장 최근인 2016년 2월 11일에 발생한 매수의 매수 잔량 1개, 2016년 1월 26일에 발생한 매수의 매수 잔량 1개, 2016년 1월 20일에 발생한 매수의 매수 잔량 1개, 2016년 1월 18일에 발생한 매수의 매수 잔량 1개 및 2016년 1월 7일에 발생한 매수의 매수 잔량 23개로 모두 공제함으로써, 2016년 1월 7일에 발생한 매수의 매수 잔량은 4개로 나머지 매수 잔량은 0개로 저장될 수 있다.Thereafter, 23(B) of the sales amount of the sales 620 occurred on February 25, 2016, the most recent purchase of the remaining amount on February 11, 2016 1, the remaining amount on January 26, 2016 1 Remaining number of purchases, 1 Remaining number of purchases on January 20, 2016, 1 Remaining purchases on January 18, 2016, and 1 Remaining purchases on January 7, 2016 23 By deducting all of them, the remaining balance of the number of purchases that occurred on January 7, 2016 can be stored as four, and the remaining amount of purchases can be stored as zero.

이 때, 2016년 2월 11일에 발생한 매수의 매수 상대 매도량 필드에는 2016년 2월 25일에 발생한 매도(620)의 매도 수량 23개(B) 중 1개에 상응하는 매수 상대 매도량 1개(B)가 저장될 수 있다. 또한, 2016년 2월 11일에 발생한 매수의 매수 상대 매도가 필드에는 2016년 2월 25일에 발생한 매도(620)의 매도가 8,575원이 매수 상대 매도가로 저장될 수 있다.At this time, in the field of the relative amount of purchase of the number of purchases that occurred on February 11, 2016, in the field of the amount of relative sale, which corresponds to one of 23 (B) of the sale amount of sales (620) occurred on February 25, 2016 ( B) can be stored. In addition, in the field of the relative selling of the number of purchases that occurred on February 11, 2016, the selling of the sale (620) that occurred on February 25, 2016 may be stored as a relative selling price of KRW 8,575.

이 때, 2016년 1월 26일에 발생한 매수의 매수 상대 매도량 필드에는 2016년 2월 25일에 발생한 매도(620)의 매도 수량 23개(B) 중 1개에 상응하는 매수 상대 매도량 1개(B)가 저장될 수 있다. 또한, 2016년 1월 26일에 발생한 매수의 매수 상대 매도가 필드에는 2016년 2월 25일에 발생한 매도(620)의 매도가 8,575원이 매수 상대 매도가로 저장될 수 있다.At this time, in the field of the relative amount of sales of the number of purchases that occurred on January 26, 2016, the number of relative sales of the number of purchases corresponding to one of 23 (B) of the sales amount of sales (620) occurred on February 25, 2016 ( B) can be stored. In addition, in the field of relative purchase of the number of purchases that occurred on January 26, 2016, the sale of the sale (620) that occurred on February 25, 2016 can be stored as a relative purchase price of KRW 8,575.

이 때, 2016년 1월 20일에 발생한 매수의 매수 상대 매도량 필드에는 2016년 2월 25일에 발생한 매도(620)의 매도 수량 23개(B) 중 1개에 상응하는 매수 상대 매도량 1개(B)가 저장될 수 있다. 또한, 2016년 1월 20일에 발생한 매수의 매수 상대 매도가 필드에는 2016년 2월 25일에 발생한 매도(620)의 매도가 8,575원이 매수 상대 매도가로 저장될 수 있다.At this time, in the field of the relative amount of sales of the number of purchases that occurred on January 20, 2016, the field of the amount of relative sales that corresponds to one of 23 (B) of the selling quantity of sales 620 occurred on February 25, 2016 ( B) can be stored. In addition, in the field of relative purchase of the number of purchases that occurred on January 20, 2016, the sale of the sale (620) that occurred on February 25, 2016 may be stored as a relative purchase price of KRW 8,575.

이 때, 2016년 1월 18일에 발생한 매수의 매수 상대 매도량 필드에는 2016년 2월 25일에 발생한 매도(620)의 매도 수량 23개(B) 중 1개에 상응하는 매수 상대 매도량 1개(B)가 저장될 수 있다. 또한, 2016년 1월 18일에 발생한 매수의 매수 상대 매도가 필드에는 2016년 2월 25일에 발생한 매도(620)의 매도가 8,575원이 매수 상대 매도가로 저장될 수 있다.At this time, in the field of the relative amount of sales of the number of purchases that occurred on January 18, 2016, the number of relative sales of the number of purchases corresponding to 1 of 23 (B) of the amount of sales (620) occurred on February 25, 2016 ( B) can be stored. In addition, in the field of relative selling of the number of purchases that occurred on January 18, 2016, the selling of the sale (620) that occurred on February 25, 2016 may be stored as a relative selling price of KRW 8,575.

이 때, 2016년 1월 7일에 발생한 매수의 매수 상대 매도량 필드에는 2016년 2월 25일에 발생한 매도(620)의 매도 수량 23개(B) 중 19개에 상응하는 매수 상대 매도량 19개(B)가 저장될 수 있다. 또한, 2016년 1월 7일에 발생한 매수의 매수 상대 매도가 필드에는 2016년 2월 25일에 발생한 매도(620)의 매도가 8,575원이 매수 상대 매도가로 저장될 수 있다.At this time, in the field of relative sales of the number of purchases that occurred on January 7, 2016, the number of relative sales of 19 corresponding to 19 of the 23 (B) of the sales amount of sales (620) occurred on February 25, 2016 ( B) can be stored. In addition, in the field of relative purchase of the number of purchases that occurred on January 7, 2016, the sale of the sale (620) that occurred on February 25, 2016 may be stored as a relative purchase price of KRW 8,575.

이 후, 2016년 3월 10일에 발생한 매도(630)의 매도 수량 23개는 매수 잔량이 0이 아니면서 가장 최근에 발생한 매수인 2016년 1월 7일에 발생한 매수의 매수 잔량 4개와 2016년 1월 4일 발생한 매수의 매수 잔량 24개로 모두 공제함으로써, 2016년 1월 4일에 발생한 매수의 매수 잔량은 5개로 2016년 1월 7일에 발생한 매수의 매수 잔량은 0개로 저장될 수 있다.Thereafter, 23 of the selling quantity of the sale 630 that occurred on March 10, 2016 is 4 of the most recent buying, which occurred on January 7, 2016, which is the most recent buying, while the remaining quantity is 0, and 1 of 2016. By subtracting all the remaining amount of the number of purchases that occurred on the 4th of the month to 24, the remaining amount of the number of purchases that occurred on the 4th of January 2016 can be stored as 5, and the remaining amount of the number of purchases that occurred on the 7th of January 2016 can be stored as 0.

이 때, 2016년 1월 7일에 발생한 매수의 매수 상대 매도량 필드에는 2016년 3월 10일에 발생한 매도(630)의 매도 수량 23개(C) 중 4개에 상응하는 매수 상대 매도량 4개(C)가 저장될 수 있다. 또한, 2016년 1월 7일에 발생한 매수의 매수 상대 매도가 필드에는 2016년 3월 10일에 발생한 매도(630)의 매도가 9,005원이 매수 상대 매도가로 저장될 수 있다.At this time, in the field of the relative amount of purchase of the number of purchases that occurred on January 7, 2016, the number of relative amount of purchases (4) corresponding to 4 of the 23 (C) of the amount of sale (630) that occurred on March 10, 2016 ( C) can be stored. In addition, in the field of relative purchase of the number of purchases that occurred on January 7, 2016, the sale of the sale (630) that occurred on March 10, 2016 can be stored as a relative purchase of 9,005 won.

이 때, 2016년 1월 4일에 발생한 매수의 매수 상대 매도량 필드에는 2016년 3월 10일에 발생한 매도(630)의 매도 수량 23개(C) 중 19개에 상응하는 매수 상대 매도량 19개(C)가 저장될 수 있다. 또한, 2016년 1월 4일에 발생한 매수의 매수 상대 매도가 필드에는 2016년 3월 10일에 발생한 매도(630)의 매도가 9,005원이 매수 상대 매도가로 저장될 수 있다.At this time, in the field of relative sales of the number of purchases that occurred on January 4, 2016, the field of relative sales amount of 19 corresponding to 19 of 23 (C) of the number of sales of sales (630) occurred on March 10, 2016 ( C) can be stored. In addition, in the field of relative purchase of the number of purchases that occurred on January 4, 2016, the sale of the sale (630) that occurred on March 10, 2016 can be stored as a relative purchase price of KRW 9,005.

도 7 내지 도 8은 도 5 내지 도 6에 도시된 종목 거래 데이터를 본 발명에 따른 종목 거래 데이터 관리 방법으로 산출한 결과의 일 예를 나타낸 도면이다.7 to 8 are diagrams illustrating an example of the results of calculating the stock trading data shown in FIGS. 5 to 6 with the stock trading data management method according to the present invention.

도 7 내지 도 8을 참조하면, 도 5 내지 도 6에 도시된 종목 거래 데이터를 기반으로 매매차익 필드(710), 매매차익 누계 필드(720), 보유단가 필드(730), 보유주식 평균 매수단가 필드(740) 및 보유종목 평가이익 필드(750)에 상응하는 값을 각각 산출한 것을 확인할 수 있다.7 to 8, based on the stock transaction data shown in FIGS. 5 to 6, the trading profit field 710, the cumulative trading profit field 720, the holding unit price field 730, the average stock price It can be seen that the values corresponding to the field 740 and the holding item evaluation profit field 750 are respectively calculated.

이 때, 매매차익 필드(710)에 입력될 매매차익은 하기와 같이 계산할 수 있다.At this time, the trading margin to be input into the trading margin field 710 may be calculated as follows.

매매차익 = ((매도가 - 매도 상대 매수가) * 매도 수량) - 매수 수수료 - 매도 수수료 및 세금Trading margin = ((Sell-Sell relative to sell) * Sell quantity)-Buy fee-Sell fee and tax

즉, 현재가에 해당하는 매도가에서 가장 최근의 매수에 의한 매수가인 매도 상대 매수가를 빼는 방식으로 매매차익을 계산함으로써 주식, 선물 및 옵션 등의 금융상품의 매매에 적합한 후입선출 방식으로 매매차익을 정확하게 계산할 수 있다. In other words, the trading profit is calculated by subtracting the relative purchase price, which is the purchase by the most recent purchase, from the selling price corresponding to the current price, thereby accurately calculating the trading profit by a first-in-first-out method suitable for trading financial instruments such as stocks, futures, and options. Can.

예를 들어, 도 5에 도시된 2015년 11월 19일에 발생한 매도에 의한 매매차익은 (9,005) - 8,740) * 23 - {((9,005 * 0.005) + (8,740 * 0.002)) *23}에 상응하게 계산할 수 있다. 즉, 현재가에 상응하는 매도가 9,005원에서 가장 최근의 매수에 의한 매수가인 매도 상대 매수가 8,740원을 뺀 값에 매도 수량 23개를 곱한 결과 6,095원에서, 매수 수수료인 9,005원의 0.5%와 매도 수수료인 8,740원의 0.2%를 합하여 매도 수량만큼 곱한 값인 1,437원을 뺀 4,658원이 2015년 11월 19일에 발생한 매도에 의한 매매차익에 상응할 수 있다.For example, the gains and losses on sale on November 19, 2015, shown in FIG. 5, are (9,005)-8,740) * 23-{((9,005 * 0.005) + (8,740 * 0.002)) *23} Can be calculated accordingly. In other words, the selling price corresponding to the current price is 9,005 won, which is the most recent buying, and the relative number of selling is 8,740 won, multiplied by 23 selling quantity, resulting in 6,095 won, 0.5% of the selling fee of 9,005 won and selling. 4,658 won, minus 1,437 won, which is the product multiplied by the selling quantity by adding 0.2% of the fee of 8,740 won, may correspond to the gains and losses from the sale on November 19, 2015.

이 때, 기존의 회계처리 방식에 상응하게 매매차익을 산출한다고 가정한다면, 매도가 9,005원에서 도 7 및 도 8에 도시된 2015년 11월 19일의 기존 시스템 보유단가 8,757원을 뺀 값에 매도 수량 23개를 곱한 결과 5,704원에서, 매수 수수료인 9,005원의 0.5%와 매도 수수료인 8,757원의 0.2%를 합하여 매도 수량만큼 곱한 값인 1,438원을 뺀 4,266원이 2015년 11월 19일에 발생한 매도에 의한 매매차익으로 계산될 수 있다. 즉, 본 발명에 따른 후입선출 방식에 의한 매매차익과 금액에 차이가 발생하는 것을 확인할 수 있다.At this time, if it is assumed that the trading profit is calculated in accordance with the existing accounting method, the sale is sold at 9,005 won minus the existing system holding unit price of 8,757 won on November 19, 2015 shown in FIGS. 7 and 8 As a result of multiplying the quantity by 23, 4,266 won was sold on November 19, 2015, minus 5,704 won, minus 0.5% of the purchase fee of 9,005 won and 0.2% of the selling fee of 8,757 won, minus 1,438, the product of the selling quantity. It can be calculated as the trading profit by. That is, it can be seen that a difference occurs in the trading profit and the amount of money by the first-in-first-out method according to the present invention.

이 때, 매매차익 누계는 매도 발생시마다 계산되는 매매차익을 누적하여 산출한 값으로, 매매차익 필드(710)에 저장된 매매차익들을 합산한 값이 매매차익 누계 필드(720)에 가장 하단에 위치할 수 있다. At this time, the cumulative trading profit is a value calculated by accumulating the trading profits calculated at each sale, and the sum of the trading profits stored in the trading profit field 710 is located at the bottom of the cumulative trading profit field 720. Can.

이 때, 본 발명에 따른 투자이익의 제1 엘리먼트가 매매차익 누계 필드(720)에 입력되는 값에 상응할 수 있다.At this time, the first element of the investment profit according to the present invention may correspond to a value input in the cumulative field of trade profit 720.

이 때, 본 발명에 따른 투자이익의 제2 엘리먼트는 도 7 및 도 8에 도시된 보유종목 평가이익 필드(750)에 입력되는 값에 상응할 수 있다. At this time, the second element of the investment profit according to the present invention may correspond to the value input to the holding item evaluation profit field 750 shown in FIGS. 7 and 8.

이 때, 보유종목 평가 이익, 즉 보유수량의 가격변동에 의한 투자이익은 현재가에서 보유종목 평균 매수단가 필드(740)의 금액을 뺀 값에 보유수량을 곱하여 산출될 수 있다. At this time, the gain of valuation of the held item, that is, the investment gain due to the price fluctuation of the held quantity may be calculated by multiplying the holding quantity by the average selling price of the held item minus the amount of the field 740.

예를 들어, 2015년 12월 17일의 주식 현재가인 9,040원에서 보유주식의 평균 매수 단가인 8828원을 제외한 금액이 보유잔량 중 1주에 대한 가격변동 수익이기 때문에, 1주에 의한 수익에 보유잔량인 135를 곱한 28,577원이 보유종목 평가이익에 상응할 수 있다. 이 때, 도 7에 도시된 금액에 의한 계산은, 현재가 9,040원에서 보유주식의 평균 매수 단가인 8828.32원을 제외한 금액인 211.68원이 1주에 의한 수익에 상응하고, 이 금액에 보유잔량인 135를 곱한 28,576.8원, 즉 반올림한 값인 28,577원이 보유종목 평가이익에 상응할 수 있다.For example, since the amount of the stock's current price of December 17, 2015, excluding KRW 9,040, which is the average purchase price of the stock, is 8,800, the price fluctuation profit for one week of the remaining balance is retained in the profit by one week. 28,577 won multiplied by the remaining amount of 135 may correspond to the valuation gains of the stock. At this time, the calculation based on the amount shown in FIG. 7 is 211.68 won, which is the amount excluding 8828.32 won, which is the average purchase price of the stocks held at 9,040 won, corresponding to the profit by one week, and the remaining balance is 135 28,576.8 won multiplied by, or 28,577 won, which is the rounded value, can correspond to the valuation gains of the stock.

이와 같이, 본 발명에 따른 종목 거래 데이터 관리 방법은 도 7 및 도 8에 도시된 것과 같이 투자이익의 제1 엘리먼트인 매매차익 누계와 투자이익의 제2 엘리먼트인 보유종목 평가이익을 함께 표시하여 제공함으로써 주식을 보유한 사용자가 각각의 상황에 따른 손익 정보를 한눈에 파악할 수 있도록 할 수 있다.As described above, the method of managing stock transaction data according to the present invention is provided by displaying the cumulative trading profit, which is the first element of the investment profit, and the valuation gain of the stock, which is the second element of the investment profit, as shown in FIGS. 7 and 8. By doing so, it is possible for the user who holds the stock to grasp the profit/loss information according to each situation at a glance.

이 때, 투자이익은 제1 엘리먼트와 제2 엘리먼트를 합산한 금액에 상응하고, 보유잔량과 현재가를 곱한 금액에서 투입금액을 빼서 산출할 수 있다.At this time, the investment profit corresponds to the sum of the first element and the second element, and can be calculated by subtracting the input amount from the amount multiplied by the remaining balance and the present price.

예를 들어, 도 7에 도시된 2015년 12월 17일의 데이터를 참조하면, 매매차익 누계는 24,501원에 상응하고, 보유종목 평가이익은 28,577원에 상응하는 것을 확인할 수 있다. 따라서, 도 7 및 도 8에 도시된 특정 종목은 2015년 12월 17일까지의 투자이익이 24,501원과 28,577원을 합산한 53,078원에 상응할 수 있다. For example, referring to the data of December 17, 2015 shown in FIG. 7, it can be seen that the cumulative trading profit corresponds to 24,501 won, and the valuation gain of the held item corresponds to 28,577 won. Accordingly, the specific items shown in FIGS. 7 and 8 may correspond to investment profits up to December 17, 2015, totaling 24,501 won and 28,577 won, 53,078 won.

이 때, 2015년 12월 17일의 보유잔량 135와 현재가 9,040원을 곱한 값에서 투입금액 1,167,322원을 뺀 값도 53,078원으로, 제1 엘리먼트와 제2 엘리먼트를 합산하여 산출된 투자이익과 동일한 값이 산출되는 것을 확인할 수 있다.At this time, the value obtained by subtracting 1,167,322 won from the amount multiplied by the residual amount of 135 on December 17, 2015, and 9,040 won is 53,078 won, which is the same value as the investment profit calculated by adding the first element and the second element. You can see that this is calculated.

이와 같이, 본 발명에 따른 후입선출 방식의 종목 거래 데이터 관리 방법을 이용하면 특정 종목에 대한 정확한 투자이익 정보를 제공받을 수 있다.As described above, by using the method of managing data of the item trading of the first-in-first-out method according to the present invention, accurate investment profit information for a specific item can be provided.

이 때, 보유종목 평균 매수단가 필드(740)에 입력되는 보유종목 평균 매수단가는 투입금액과 매매차익 누계를 합한 값을 보유잔량으로 나눈 값에 상응할 수 있다. 즉, 투입금액에 매매차익 누계를 합함으로써 보유종목 평가이익에 매매차익에 의한 수익이 포함되지 않도록 할 수 있다.At this time, the average selling price of the held item input in the field 740 may correspond to a value obtained by dividing the sum of the input amount and the cumulative trading profit by the remaining balance. That is, by adding up the cumulative trading profits to the input amount, it is possible to prevent the profits from the trading profits from being included in the valuation gains of the stocks.

*예를 들어, 1월 19일에 발생한 매도 직후의 보유주식의 평균 매수단가는 2016년 1월 19일까지의 투입금액 1,572,715원과 매매차익 누계 29,064원을 합한 1,601,779원을 보유잔량인 183개로 나눈 8753원에 상응할 수 있다. *For example, the average selling price of stocks held shortly after the sale on January 19 is 1,601,779 won, which is the sum of the input amount of 1,572,715 won and the accumulated profit and loss of 29,064 until January 19, 2016, divided by the remaining balance of 183. It could correspond to 8753 won.

즉, 보유종목 평균 매수단가 필드(740)에 포함된 단가는 매매차익 누계 필드(720)에 입력된 값을 고려하지 않고 산출된 보유종목 1주에 대한 매수단가에 상응할 수 있다.That is, the unit price of the average selling price of the held item in the field 740 may correspond to the selling price of one week of the held item calculated without taking into account the value input in the cumulative trading profit field 720.

이 때, 도 7 내지 도 8에 함께 도시한 기존 시스템 보유단가 필드(731)는 본 발명에 따른 후입선출 방식이 아닌 회계처리 기준 방식에 상응하게 산출된 매입평균가에 상응할 수 있다. 즉, 주식, 선물 또는 옵션 등을 매수하는 경우만 고려하여, 매입금액을 수량으로 나누어 평가된 주식의 보유단가에 상응할 수 있다.At this time, the existing system holding unit price field 731 shown in FIGS. 7 to 8 may correspond to an average purchase price calculated in accordance with the accounting standard method rather than the first-in-first-out method according to the present invention. In other words, considering only when buying stocks, futures or options, the purchase amount may be divided by the quantity to correspond to the holding price of the evaluated stock.

만약, 기존의 회계처리 기준 방식을 이용하면 다음과 같이 투자이익을 산출할 수 있다. If using the existing accounting standard method, the investment profit can be calculated as follows.

예를 들어, 2015년 11월 19일에 발생한 매도에 의한 매매차익은, 매도가 9,005원에서 기존 시스템 보유단가 8,757원을 뺀 값에 매도 수량 23개를 곱한 금액인 5,704원에서, 매수 수수료인 9,005원의 0.5%와 매도 수수료인 8,757원의 0.2%를 합하여 매도 수량만큼 곱한 값인 1,438원을 뺀 4,266원에 상응할 수 있다. For example, the gains and losses on the sale on November 19, 2015, from the sale price minus 9,005 minus the existing system holding price of 8,757 won, multiplied by the number of 23 sales, 5,704 won, the purchase fee is 9,005 It can correspond to 4,266 won minus 1,438 won, which is multiplied by the quantity sold by adding 0.5% of the won and 0.2% of the selling fee of 8,757 won.

또한, 2015년 11월 19일의 보유종목 평가이익은, 현재가 9,005원에서 기존 시스템 보유단가 8,757원을 뺀 값에 보유잔량 134를 곱한 금액인 33,232원에 상응할 수 있다. 이 때, 기존의 회계처리 방식으로 보유종목의 평가이익을 구할 때에는 매도가 발생하여도 매수에 의해 계산된 매입평균가를 그대로 사용하는 것을 확인할 수 있다. 즉, 매수 시의 매수금액만을 고려하기 때문에 매도에 의해 발생한 매매차익이 보유종목 평가이익을 계산할 때에도 중복 포함되어 계산된다고 판단할 수 있다.In addition, the valuation gains for stocks held on November 19, 2015 may correspond to 33,232 won, which is the amount obtained by subtracting the existing system holding unit price of 8,757 won from the current price of 9,005 won. At this time, when obtaining the valuation gains of the stocks in the existing accounting method, it can be confirmed that the purchase average price calculated by the purchase is used as it is, even when the sale occurs. That is, since only the purchase amount at the time of purchase is considered, it can be determined that the gains and losses generated by the sale are included in the calculation of the valuation gains of the stocks.

이 때, 기존의 회계처리 방식으로 계산된 매매차익 4,266원과 보유종목 평가이익 33,232원을 합한 금액은 37,498원으로 2015년 11월 19일의 투자이익인 37,826원과 동일하지 않음을 알 수 있다. 물론, 상기 예시에 의한 2015년 11월 19일에 계산된 투자이익에 있어서 기존의 방식과 본 발명 간의 차이는 328원으로 미세할 수 있으나, 해당 종목에 대한 매수와 매도가 지속적으로 발생한다면 이 차이는 점점 벌어져서 커질 수 있다. 또한, 이렇게 크게 발생하는 차이는 주식, 선물 및 옵션 등의 금융거래 시 손해를 발생시키는 원인이 될 수도 있다. At this time, it can be seen that the sum of 4,266 won for trading profit calculated by the existing accounting method and 33,232 won for valuation of held items is 37,498 won, which is not the same as the investment profit of November 19, 2015, 37,826. Of course, the difference between the existing method and the present invention in the investment profit calculated on November 19, 2015 by the above example may be as small as 328 won, but this difference if buying and selling for the corresponding item continuously occurs. Can gradually grow and grow. In addition, such a large difference may cause damage in financial transactions such as stocks, futures and options.

따라서, 본 발명은 후입선출 방식을 기반으로 종목 거래 데이터를 제공함으로써 상기와 같은 문제점을 해결할 수 있다.Therefore, the present invention can solve the above problems by providing stock transaction data based on a first-in-first-out method.

이 때, 보유단가 필드(730)에 기재되는 보유단가는 매매차익 누계를 고려하여 산출된 보유종목 1주에 대한 단가를 의미하는 것으로, 보유종목 평균 매수단가와 보유단가를 비교하는 것만으로도 보유종목에 대한 손익을 판단할 수도 있다.At this time, the holding unit price described in the holding unit field 730 means the unit unit price per share calculated by taking into account the cumulative trading profit, and is simply held by comparing the average selling price and holding unit price. You can also judge the profit or loss on an item.

도 9는 본 발명에 따른 종목 거래 데이터 관리 장치의 인터페이스 화면의 일 예를 나타낸 도면이다.9 is a diagram showing an example of an interface screen of an item trading data management apparatus according to the present invention.

도 9를 참조하면, 본 발명에 따른 종목 거래 데이터 관리 장치의 인터페이스 화면은 사용자의 스마트 단말(910)에서 제공되는 인터페이스 화면에 상응할 수 있다.Referring to FIG. 9, the interface screen of the stock transaction data management apparatus according to the present invention may correspond to the interface screen provided by the user's smart terminal 910.

즉, 스마트 단말(910)을 통해 종목 거래 데이터 관리 장치가 제공하는 종목 거래 데이터를 획득하여 도 9에 상응하게 출력될 수 있다. That is, the item transaction data provided by the item transaction data management apparatus through the smart terminal 910 may be obtained and output corresponding to FIG. 9.

이 때, 인터페이스 화면에는 보유종목 선택 버튼(920)을 제공함으로써 사용자가 보유한 종목별로 종목 거래 데이터를 선택하여 확인할 수도 있다.At this time, the interface screen may be provided with a selection button 920 for holding items to select and check the item trading data for each item held by the user.

예를 들어, 종목별 매수 또는 매도에 따른 투자이익 금액과 함께 보유종목의 매수 평균 단가를 제공할 수 있다. 이 때, 보유종목의 매수 평균 단가는 현재가 및 보유단가와 함께 제공됨으로써 사용자가 해당 종목의 손익정보를 보다 수월하게 판단할 수 잇도록 할 수 있다. For example, it is possible to provide the average unit price of the stock of the stock with the investment profit amount according to the number of stocks of each stock. At this time, the average purchase price of the held item is provided together with the present price and the held price, so that the user can more easily determine the profit/loss information of the related item.

또한, 본 발명에 따른 종목 거래 관리 장치의 인터페이스 화면에는 주식 현재가 정보, 관심 종목 정보, 종목별 손익 정보 또는 종목별 차트와 그래프 등의 정보도 함께 제공할 수 있다.In addition, the interface screen of the stock transaction management apparatus according to the present invention may also provide information such as stock current price information, interest stock information, profit/loss information for each stock, or charts and graphs for each stock.

이 때, 도 9에서는 스마트 단말(910)을 통해 종목 거래 데이터를 제공하는 예시를 설명하고 있지만, 본 발명에 따른 종목 거래 데이터는 스마트 단말 이외에도 다양한 종류의 단말들을 통해 제공할 수도 있다.At this time, although FIG. 9 illustrates an example of providing stock transaction data through the smart terminal 910, the stock transaction data according to the present invention may be provided through various types of terminals in addition to the smart terminal.

이상에서와 같이 본 발명에 따른 후입선출 방식의 종목 거래 데이터 관리 장치 및 이를 이용한 종목 거래 데이터 관리 방법은 상기한 바와 같이 설명된 실시예들의 구성과 방법이 한정되게 적용될 수 있는 것이 아니라, 상기 실시예들은 다양한 변형이 이루어질 수 있도록 각 실시예들의 전부 또는 일부가 선택적으로 조합되어 구성될 수도 있다.As described above, the first-in-first-out item trading data management apparatus and the item trading data management method using the same are not limited to the configuration and method of the embodiments described above, but the embodiment They may be configured by selectively combining all or part of each embodiment so that various modifications can be made.

Claims (18)

종목 거래 데이터 관리 장치에 의하여 수행되는 종목 거래 데이터 관리 방법에 있어서,
특정 종목에 대한 매수가 발생하면 매수가와 매수 수량을 저장하는 단계;
상기 특정 종목에 대한 특정 매도가의 매도가 발생하면 후입선출 방식으로 매매차익 및 매매차익 누계를 산출하여 저장하는 단계; 및
상기 매매차익 누계를 이용하여 후입선출 방식의 보유종목의 평균 매수 단가를 산출하는 단계; 및
상기 보유종목의 평균 매수 단가에 상응하는 투자이익을 산출하는 단계
를 포함하는 것을 특징으로 하는 종목 거래 데이터 관리 방법.
In the method of managing the item transaction data performed by the item transaction data management device,
Storing the number of purchases and the number of purchases when a purchase for a specific item occurs;
Calculating and accumulating trading profits and trading profits in a first-in-first-out method when selling of a specific sale occurs for the specific item; And
Calculating an average purchase price of stocks of a first-in-first-out method using the accumulated trading profit; And
Calculating an investment profit corresponding to the average purchase price of the holding item
Item trading data management method comprising a.
청구항 1에 있어서,
상기 종목 거래 데이터 관리 방법은
상기 특정 종목의 매매로 인하여 발생하는 상기 투자이익의 제1 엘리먼트 및 상기 특정 종목의 보유잔량의 가격변동에 상응하는 상기 투자이익의 제2 엘리먼트를 구분하여 표시하는 단계
를 더 포함하는 것을 특징으로 하는 종목 거래 데이터 관리 방법.
The method according to claim 1,
How to manage the above trading data
Distinguishing and displaying the first element of the investment profit generated by the trading of the specific item and the second element of the investment profit corresponding to the price change of the remaining amount of the specific item.
Item transaction data management method further comprising a.
청구항 2에 있어서,
상기 제1 엘리먼트는
상기 매매차익 누계를 이용하여 산출되는 것을 특징으로 하는 종목 거래 데이터 관리 방법.
The method according to claim 2,
The first element
Item trading data management method characterized in that it is calculated by using the cumulative trading profit.
청구항 2에 있어서,
상기 제2 엘리먼트는
상기 보유종목의 평균 매수 단가에서 현재가를 뺀 금액에 상기 보유잔량을 곱하여 산출되는 것을 특징으로 하는 종목 거래 데이터 관리 방법.
The method according to claim 2,
The second element
A method of managing trading data of a stock, characterized in that it is calculated by multiplying the remaining balance by the amount obtained by subtracting the current price from the average purchase price of the stock.
청구항 2에 있어서,
상기 제1 엘리먼트 및 상기 제2 엘리먼트의 합은 상기 투자이익에 상응하는 것을 특징으로 하는 종목 거래 데이터 관리 방법.
The method according to claim 2,
The method of managing stock trading data, wherein the sum of the first element and the second element corresponds to the investment profit.
청구항 1에 있어서,
상기 매매차익 및 매매차익 누계를 산출하여 저장하는 단계는
가장 최근에 매수한 물량부터 상기 매도에 상응하는 매도물량으로 하여 매도 상대 매수가를 저장하고, 상기 매도 상대 매수가에 기반하여 상기 매매차익 및 매매차익 누계를 산출하는 것을 특징으로 하는 종목 거래 데이터 관리 방법.
The method according to claim 1,
The step of calculating and storing the trading profit and the cumulative trading profit is
A method of managing stock trading data, characterized by storing the relative selling price as the selling quantity corresponding to the selling amount from the most recently purchased quantity, and calculating the trading profit and cumulative trading profit based on the selling relative selling price.
청구항 6에 있어서,
상기 매매차익 및 매매차익 누계를 산출하여 저장하는 단계는
상기 특정 매도가의 매도물량이 가장 최근에 매수한 물량보다 많은 경우에 둘 이상의 매도 상대 매수가들을 저장하고, 상기 둘 이상의 매도 상대 매수가들 각각에 대한 매매차익 및 매매차익 누계를 산출하는 것을 특징으로 하는 종목 거래 데이터 관리 방법.
The method according to claim 6,
The step of calculating and storing the trading profit and the cumulative trading profit is
An event characterized by storing two or more selling relative purchases when the selling quantity of the specific selling is larger than the most recently purchased quantity, and calculating the trading gain and trading profit accumulation for each of the two or more selling relative buying How to manage transaction data.
청구항 7에 있어서,
상기 매매차익은
상기 특정 매도가에서 상기 매도 상대 매수가를 뺀 금액에 상기 매도물량을 곱한 값에서 매수 수수료, 매도 수수료 및 세금을 빼서 산출되는 것을 특징으로 하는 종목 거래 데이터 관리 방법.
The method according to claim 7,
The above trading profit
A method of managing stock transaction data, characterized in that the amount obtained by subtracting the relative selling price from the specific selling price is calculated by subtracting a buying fee, selling fee, and tax from a value multiplied by the selling amount.
청구항 5에 있어서,
상기 후입선출 방식의 보유종목의 평균 매수 단가는
투입금액에 상기 매매차익 누계를 더한 값을 보유잔량으로 나눠서 산출되는 것을 특징으로 하는 종목 거래 데이터 관리 방법.
The method according to claim 5,
The average purchase price of stocks of the last-in-first-out method is
A method of managing stock transaction data, characterized in that the sum of the sum of the trading profit added to the input amount is divided by the remaining balance.
특정 종목에 대한 매수가와 매수 수량을 저장하고, 특정 매도가의 종목매도 발생시마다 후입선출 방식으로 산출되는 매매차익 및 매매차익 누계를 저장하는 메모리; 및
상기 후입선출 방식의 매매차익 누계를 이용하여 후입선출 방식의 보유종목 평균 매수단가를 산출하고, 상기 보유종목의 평균 매수 단가에 상응하는 투자이익을 산출하는 프로세서
를 포함하는 것을 특징으로 하는 종목 거래 데이터 관리 장치.
A memory for storing the number of purchases and the number of purchases for a specific item and accumulating trading profits and trading profits that are calculated in a first-in-first-out method every time a short-selling event occurs; And
A processor that calculates the average selling price of the stocks of the last-in-first-out method using the cumulative trading gains of the last-in, first-out method, and calculates an investment profit corresponding to the average purchase price of the holdings.
Item trading data management device comprising a.
청구항 10에 있어서,
상기 프로세서는
상기 특정 종목의 매매로 인하여 발생하는 상기 투자이익의 제1 엘리먼트 및 상기 특정 종목의 보유잔량의 가격변동에 상응하는 상기 투자이익의 제2 엘리먼트를 구분하여 표시하는 것을 특징으로 하는 종목 거래 데이터 관리 장치.
The method according to claim 10,
The processor
A device for managing transaction data, characterized in that the first element of the investment profit generated by the trading of the specific item and the second element of the investment profit corresponding to the price fluctuation of the remaining amount of the specific item are classified and displayed. .
청구항 11에 있어서,
상기 제1 엘리먼트는
상기 매매차익 누계를 이용하여 산출되는 것을 특징으로 하는 종목 거래 데이터 관리 장치.
The method according to claim 11,
The first element
An instrument trading data management device, characterized in that it is calculated using the cumulative trading profit.
청구항 11에 있어서,
상기 제2 엘리먼트는
상기 보유종목의 평균 매수 단가에서 현재가를 뺀 금액에 상기 보유잔량을 곱하여 산출되는 것을 특징으로 하는 종목 거래 데이터 관리 장치.
The method according to claim 11,
The second element
An apparatus for managing transaction data, characterized in that it is calculated by multiplying the residual amount by an amount obtained by subtracting the current price from the average purchase price of the held item.
청구항 11에 있어서,
상기 제1 엘리먼트 및 상기 제2 엘리먼트의 합은 상기 투자이익에 상응하는 것을 특징으로 하는 종목 거래 데이터 관리 장치.
The method according to claim 11,
A stock trading data management apparatus, wherein the sum of the first element and the second element corresponds to the investment profit.
청구항 10에 있어서,
상기 메모리는
가장 최근에 매수한 물량부터 매도물량으로 하여 매도 상대 매수가를 저장하고, 상기 매도 상대 매수가에 기반하여 상기 매매차익 및 매매차익 누계를 산출하는 것을 특징으로 하는 종목 거래 데이터 관리 장치.
The method according to claim 10,
The memory
An item trading data management device, characterized by storing the relative selling price from the most recently purchased quantity to the selling quantity, and calculating the trading profit and cumulative trading profit based on the relative selling price.
청구항 15에 있어서,
상기 메모리는
상기 특정 매도가의 매도물량이 가장 최근에 매수한 물량보다 많은 경우에 둘 이상의 매도 상대 매수가들을 저장하고, 상기 둘 이상의 매도 상대 매수가들 각각에 대한 매매차익 및 매매차익 누계를 산출하는 것을 특징으로 하는 종목 거래 데이터 관리 장치.
The method according to claim 15,
The memory
An event characterized by storing two or more selling relative purchases when the selling quantity of the specific selling is larger than the most recently purchased quantity, and calculating the trading gain and trading profit accumulation for each of the two or more selling relative buying Transaction data management device.
청구항 16에 있어서,
상기 매매차익은
상기 특정 매도가에서 상기 매도 상대 매수가를 뺀 금액에 매도물량을 곱한 값에서 매수 수수료, 매도 수수료 및 세금을 빼서 산출되는 것을 특징으로 하는 종목 거래 데이터 관리 장치.
The method according to claim 16,
The above trading profit
An item trading data management device, characterized in that the specific selling price is calculated by subtracting the buying fee, selling fee, and tax from the value obtained by subtracting the relative selling price from the selling price.
청구항 10에 있어서,
상기 후입선출 방식의 보유종목의 평균 매수 단가는
투입금액에 상기 매매차익 누계를 더한 값을 보유잔량으로 나눠서 산출되는 것을 특징으로 하는 종목 거래 데이터 관리 장치.
The method according to claim 10,
The average purchase price of stocks of the last-in-first-out method is
An item trading data management device, characterized in that it is calculated by dividing the input amount by adding the cumulative trading profit to the remaining amount.
KR1020187032232A 2016-06-13 2017-06-13 A device for managing data on stock trading using a first-in-first-out method and a method for managing stock trading data using the same KR102124322B1 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
KR20160073201 2016-06-13
KR1020160073201 2016-06-13
PCT/KR2017/006136 WO2017217734A1 (en) 2016-06-13 2017-06-13 Device for managing item trade data on basis of last-in first-out scheme, and method for managing item trade data by using same

Publications (2)

Publication Number Publication Date
KR20180125025A KR20180125025A (en) 2018-11-21
KR102124322B1 true KR102124322B1 (en) 2020-06-26

Family

ID=60664480

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020187032232A KR102124322B1 (en) 2016-06-13 2017-06-13 A device for managing data on stock trading using a first-in-first-out method and a method for managing stock trading data using the same

Country Status (2)

Country Link
KR (1) KR102124322B1 (en)
WO (1) WO2017217734A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6338047B1 (en) * 1999-06-24 2002-01-08 Foliofn, Inc. Method and system for investing in a group of investments that are selected based on the aggregated, individual preference of plural investors
KR20050024494A (en) * 2005-02-04 2005-03-10 한기천 The method which analyze the trading volume of a bill broker in the online trading
KR100868049B1 (en) * 2006-07-26 2008-11-10 굿모닝신한증권 주식회사 Method for providing account clinic service in home trading system
KR20130138887A (en) * 2012-06-12 2013-12-20 양용철 Device and method for profit and loss calculation in case of split sale in stock trading system
KR20140134060A (en) * 2013-05-13 2014-11-21 키움증권 주식회사 System and method for writing Trading document in online stocktrading

Also Published As

Publication number Publication date
WO2017217734A1 (en) 2017-12-21
KR20180125025A (en) 2018-11-21

Similar Documents

Publication Publication Date Title
US7664692B2 (en) Method and system for creating and trading derivative investment instruments based on an index of investment management companies
US20200234374A1 (en) Coupon blending of a swap portfolio
US20070112659A1 (en) Method and system for generating and trading derivative investment instruments based on a covered stock portfolio benchmark index
US8341069B2 (en) Method and system for creating and trading derivative investment instruments based on an index of collateralized options
US8788394B1 (en) Electronic information and analysis system
WO2016044608A1 (en) System and method for a semi-lit market
AU2014321533A1 (en) Techniques for facilitating electronic trading
WO2016044603A1 (en) System and method for facilitation cross orders
US10467612B2 (en) Volume based transaction cost recovery
JP4890020B2 (en) Stock trading order issuing device and method
US20140143024A1 (en) Transaction cost recovery analytics
US8108290B2 (en) Market sentiment indicator
KR102124322B1 (en) A device for managing data on stock trading using a first-in-first-out method and a method for managing stock trading data using the same
JP2009199263A (en) Profit/loss amount determination type ordering system
JP2006164310A (en) Method and apparatus for supporting stock trading
JP6147156B2 (en) Server apparatus, financial product transaction method, and program
JP4864529B2 (en) Stock trading management system
van der Merwe Cryptocurrencies and other digital asset investments
WO2008154459A2 (en) Retail derivative financial products
US20040088240A1 (en) Estimating forecast value method, system, and program
KR102625751B1 (en) Method for transaction of property with changing price feature based on coupon and apparatus for performing the method
US20220318843A1 (en) Device for managing promotion work for product that manufacturer desires to sell, and program executed on said device
JP2004334388A (en) Sales prediction method
CN115719280A (en) Return point determining method, device, equipment and medium based on annuity account
JP5646967B2 (en) CFD hedge processing system, method thereof, and program

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right