[개발] 스몬 카드 투자[13] by tradingideas

View this thread on steempeak.com
· @tradingideas ·
$32.24
[개발] 스몬 카드 투자[13]
오늘 스몬KR 카카오방에서 매도 중인 카드 리스트를 알고 싶다는 요청이 있었습니다. 유용한 기능으로 생각이 되어서 추가해보았습니다.

파이썬 프로그램은 아래 사이트에 있습니다. "run" 버튼을 누르시면 실행이 됩니다. 
https://repl.it/@zonemultiwhs/smonall

명령어는 4번이고, 사용법은 아래와 같습니다.
4 계정명
![](https://cdn.steemitimages.com/DQmPNE1MMBhavZbmX2bSR3ftDdjEpKfRAtqz2mJcKxhf7ha/image.png)

이번에 새로 나온 reward 카드 골드를 받으신 분의 현재 매도 내역입니다.

그리고 사용의 편의를 위하여 한가지 기능을 추가하였습니다.
계정명을 입력하여야 하는 명령어의 경우에 계정명을 입력하지 않으면 INT_ACCOUNTS에 있는 첫 번째 계정으로 검색을 합니다. 따라서 4번 명령어의 경우에 4번만 입력하면 미리 정의된 계정으로 검색을 하게 되어서 불필요하게 계정명을 반복 입력할 필요가 없어졌습니다.

~~~
INT_ACCOUNTS = ['관심계정명']
~~~

--------------------

기존 card 가격을 출력하는 함수를 조금만 수정하면 될 것으로 생각을 하였는데, 수정할 사항이 조금 많았습니다. 그리고  출력할 때 일반카드만 출력하고 골드카드도 함께 매도 주문이 있으면 뒤에 "+ gold"를 추가하는 방식으로 코딩을 하였습니다.

그런데 일반 카드는 없고, 골드 카드만 주문한 경우가 있더군요. 제보해주신 @gfriend96님 감사합니다.

그래서 아래와 같은 코드를 추가하였습니다. 이미 출력한 카드 ID가 들어있는 displayed list를 받은 후 여기 없는 카드만 출력하는 함수 입니다.

~~~
def    print_pending_gold_only(displayed, sglist) :
    for card in sglist :
        if card[0] not in displayed :
            displayed.append(card[0])
            print_this_pending_order(card, 'Gold', 0)

~~~

이 기능을 만든 후 몇 번 돌려보니, 의외로 유용한 기능으로 보입니다. 총 합이 나오기 때문에 매일 한 번씩 돌려보면 어제 몇 장이 팔렸는지 확인할 수도 있겠더군요. 또한 황당하게 높은 가격에 주문을 낸 경우에 가격을 조정할 수도 있을 것 같습니다.

뭔가를 전체적으로 볼 수 있다면 새로운 인사이트를 발견할 수 있는 것 같습니다.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 256 others
👎  
properties (23)
post_id80,493,687
authortradingideas
permlink13
categorysct
json_metadata{"tags":["sct","sct-kr","sct-freeboard","s","union","spt","jjm","zzan","liv"],"users":["gfriend96"],"image":["https:\/\/cdn.steemitimages.com\/DQmPNE1MMBhavZbmX2bSR3ftDdjEpKfRAtqz2mJcKxhf7ha\/image.png"],"links":["https:\/\/repl.it\/@zonemultiwhs\/smonall"],"app":"steemcoinpan\/0.1","format":"markdown"}
created2019-10-01 10:30:15
last_update2019-10-01 10:30:15
depth0
children5
net_rshares88,911,728,060,938
last_payout2019-10-08 10:30:15
cashout_time1969-12-31 23:59:59
total_payout_value16.598 SBD
curator_payout_value15.646 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,268
author_reputation3,162,277,660,168,379
root_title"[개발] 스몬 카드 투자[13]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (321)
@jsquare ·
jcar토큰 9월 구독 보팅입니다. 
좋은 하루 보내세요. ^^
properties (22)
post_id80,494,178
authorjsquare
permlinkre-13-20191001t105253z
categorysct
json_metadata{"app":"rewarding\/0.1.5"}
created2019-10-01 10:52:57
last_update2019-10-01 10:52:57
depth1
children0
net_rshares0
last_payout2019-10-08 10:52:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length36
author_reputation1,180,924,743,239,699
root_title"[개발] 스몬 카드 투자[13]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steem-ua ·
#### Hi @tradingideas!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your **UA** account score is currently 4.398 which ranks you at **#2480** across all Steem accounts.
Your rank has not changed in the last three days.

In our last Algorithmic Curation Round, consisting of 109 contributions, your post is ranked at **#23**.
##### Evaluation of your UA score:

* Some people are already following you, keep going!
* The readers like your work!
* Try to work on user engagement: the more people that interact with you via the comments, the higher your UA score!


**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
properties (22)
post_id80,506,704
authorsteem-ua
permlinkre-13-20191001t192218z
categorysct
json_metadata{"app":"beem\/0.21.0"}
created2019-10-01 19:22:18
last_update2019-10-01 19:22:18
depth1
children0
net_rshares0
last_payout2019-10-08 19:22:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length702
author_reputation23,203,609,903,979
root_title"[개발] 스몬 카드 투자[13]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steemitboard ·
Congratulations @tradingideas! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

<table><tr><td><img src="https://steemitimages.com/60x70/http://steemitboard.com/@tradingideas/voted.png?201910011204"></td><td>You received more than 60000 upvotes. Your next target is to reach 65000 upvotes.</td></tr>
<tr><td><img src="https://steemitimages.com/60x60/http://steemitboard.com/img/notifications/postallweek.png"></td><td>You published a post every day of the week</td></tr>
</table>

<sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@tradingideas) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=tradingideas)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>


To support your work, I also upvoted your post!


###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
properties (22)
post_id80,511,856
authorsteemitboard
permlinksteemitboard-notify-tradingideas-20191001t234059000z
categorysct
json_metadata{"image":["https:\/\/steemitboard.com\/img\/notify.png"]}
created2019-10-01 23:41:00
last_update2019-10-01 23:41:00
depth1
children0
net_rshares0
last_payout2019-10-08 23:41:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,083
author_reputation38,705,954,145,809
root_title"[개발] 스몬 카드 투자[13]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@tailcock ·
빨리 파이슨 배워서 트아님 따라하고 싶은데 시간이 녹녹치 않네요.
properties (22)
post_id80,521,012
authortailcock
permlinkpyqln3
categorysct
json_metadata{"tags":["sct","spt"],"app":"splintertalk\/0.1"}
created2019-10-02 07:47:27
last_update2019-10-02 07:47:27
depth1
children1
net_rshares0
last_payout2019-10-09 07:47:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length36
author_reputation238,658,978,685,858
root_title"[개발] 스몬 카드 투자[13]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@tradingideas ·
시간을 내셔야 합니다.
properties (22)
post_id80,521,540
authortradingideas
permlinkpyqmxc
categorysct
json_metadata{"tags":["sct"],"app":"steemcoinpan\/0.1"}
created2019-10-02 08:15:18
last_update2019-10-02 08:15:18
depth2
children0
net_rshares0
last_payout2019-10-09 08:15:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length12
author_reputation3,162,277,660,168,379
root_title"[개발] 스몬 카드 투자[13]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000