지인의 부탁으로 옵션과 관련된 프로그램 개발할 수 있는지 검토 요청을 받았습니다. DeFi를 한 이후로는 주식 자동 매매는 접고 있었는데요. 오랜만에 xing api를 사용해보았습니다. 그동안 많은 변화가 있었더군요. 우선 최신 xing api로 업데이트를 해야합니다. 이베스트 홈페이지에 접속하여 최신 버전으로 update하였습니다. 기존에 주식관련 코드 찾아서 내용을 보는데, 기억이 가물가물합니다. 관련 글을 읽어보면서 과거 기억을 되살려봅니다 우선 옵션 코드를 받을 수 있는 함수를 만들어보았습니다. TR코드는 2301번이고, 해당 월 콜옵션과 풋옵션 코드를 돌려줍니다. ~~~ rest = get_2301('202107') if 'error' in rest[0] : # 오류인 경우에 set 형식으로 돌아옴 'error' print (rest[0]['error']['message']) else : print (rest[0]) print (rest[1]) ~~~ 결과는 아래와 같이 행사가와 옵션코드 쌍으로 돌아옵니다. ![](https://cdn.steemitimages.com/DQmcEPbv4sUKCBXP5D8mdpvSKY19zmN69jeJqqLZLsLZVys/image.png) 다음에는 보유 옵션의 델타, 감마, 세타, 베가 정보를 이용하여 델타 중립, 감마 중립, 세타 중립 포지션을 만드는 방법에 대하여 공부해보도록 하겠습니다. 비트코인도 option이 있으면 레버리지를 더 키울 수 있어서 재미있을 것 같습니다만 -.-
post_id | 91,948,515 |
---|---|
author | tradingideas |
permlink | xing-api-api |
category | hive-101145 |
json_metadata | {"tags":["hive-101145","sct-kr","sct-freeboard","s","union","spt","zzan","krsuccess","sct"],"image":["https:\/\/cdn.steemitimages.com\/DQmcEPbv4sUKCBXP5D8mdpvSKY19zmN69jeJqqLZLsLZVys\/image.png"],"app":"steemcoinpan\/0.1","format":"markdown","canonical_url":"https:\/\/www.steemcoinpan.com\/@tradingideas\/xing-api-api"} |
created | 2021-06-14 14:41:03 |
last_update | 2021-06-14 14:41:03 |
depth | 0 |
children | 4 |
net_rshares | 145,579,751,845,871 |
last_payout | 2021-06-21 14:41:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 51.425 SBD |
curator_payout_value | 45.241 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 819 |
author_reputation | 3,162,277,660,168,379 |
root_title | "[일상] xing api 중 옵션 관련 api" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
gerber | 0 | 2,085,682,946 | 11.6% | ||
helle | 0 | 11,853,485,437 | 30% | ||
ezzy | 0 | 147,722,397,676 | 11.6% | ||
exyle | 0 | 9,835,736,846 | 11.6% | ||
jphamer1 | 0 | 6,159,740,585,939 | 100% | ||
samzung | 0 | 4,196,474,971 | 100% | ||
robertchr | 0 | 1,367,726,848 | 7% | ||
tto314 | 0 | 5,457,516,132 | 100% | ||
happyberrysboy | 0 | 58,517,073,043 | 100% | ||
ribalinux | 0 | 81,630,335,370 | 100% | ||
uruiamme | 0 | 6,176,991,229 | 75% | ||
bizventurer | 0 | 19,207,111,744 | 100% | ||
stylegold | 0 | 284,375,132 | 100% | ||
realmankwon | 0 | 2,994,324,167 | 100% | ||
skuld2000 | 0 | 22,680,285,355 | 100% | ||
offoodandart | 0 | 248,163,091,270 | 100% | ||
heyitshaas | 0 | 6,054,488,400 | 100% | ||
edkarnie | 0 | 253,330,392,196 | 100% | ||
otom | 0 | 22,122,656,681 | 100% | ||
clarkgold | 0 | 16,653,534,042 | 100% | ||
fur2002ks | 0 | 64,550,992,177 | 17% | ||
white-rose | 0 | 13,062,413,099 | 100% | ||
nadhora | 0 | 3,242,079,243 | 100% | ||
accelerator | 0 | 60,112,071,273 | 11.6% | ||
deathwing | 0 | 1,132,413,957 | 29% | ||
koinbot | 0 | 9,325,822,802 | 100% | ||
hotmangoes | 0 | 6,994,894,510 | 100% | ||
khaleelkazi | 0 | 620,416,031 | 11.6% | ||
tradingideas | 0 | 421,514,547,569 | 100% | ||
ioioioioi | 0 | 721,440,302 | 30% | ||
goodhello | 0 | 927,338,178 | 100% | ||
backdm | 0 | 5,181,526,478 | 70% | ||
r351574nc3 | 0 | 3,192,472,168 | 3% | ||
stewsak | 0 | 3,051,277,593 | 10% | ||
nealmcspadden | 0 | 8,673,034,679 | 11.6% | ||
vgichar | 0 | 1,590,410,247 | 100% | ||
knight4sky | 0 | 3,425,253,973 | 100% | ||
piotrgrafik | 0 | 436,793,673,891 | 100% | ||
gfriend96 | 0 | 50,336,623,913 | 75% | ||
cyka-blyatko | 0 | 78,191,953 | 100% | ||
ikrahch | 0 | 291,256,077,641 | 100% | ||
dushica | 0 | 540,865,412 | 100% | ||
wwwfernand | 0 | 310,512,193 | 100% | ||
sudefteri | 0 | 17,839,286,104 | 100% | ||
heinzgugu | 0 | 0 | 100% | ||
megabot | 0 | 28,807,896,244 | 100% | ||
tgc | 0 | 1,598,751,457 | 100% | ||
amidank | 0 | 550,001,724 | 100% | ||
blockchaindaily | 0 | 405,565,189 | 1% | ||
akifane | 0 | 2,991,567,387 | 100% | ||
futurecurrency | 0 | 9,900,507,405 | 53% | ||
olgadmitriewna | 0 | 2,881,950,184 | 100% | ||
salty-mcgriddles | 0 | 4,255,924,961 | 3% | ||
yungonkim | 0 | 140,989,070,512 | 100% | ||
rahulrana | 0 | 3,911,557,555 | 100% | ||
tailcock | 0 | 104,232,541,130 | 30% | ||
bongje | 0 | 11,932,452,689 | 100% | ||
lucky2015 | 0 | 191,063,780,004 | 100% | ||
allnews | 0 | 849,082,741 | 50% | ||
phasewalker | 0 | 19,089,294,080 | 100% | ||
therising | 0 | 3,707,696,932,918 | 100% | ||
machellin | 0 | 6,783,841,365 | 20% | ||
tapu333 | 0 | 0 | 100% | ||
steem-tube | 0 | 317,958,299,099 | 100% | ||
zolena | 0 | 946,744,454 | 100% | ||
newbijohn | 0 | 32,849,685,130 | 100% | ||
opixer | 0 | 232,230,864 | 100% | ||
today-news | 0 | 91,568,013 | 100% | ||
sammycakes | 0 | 348,302,098 | 100% | ||
exifr | 0 | 4,112,642,783 | 3% | ||
video24x | 0 | 6,519,310 | 10% | ||
abcor | 0 | 3,553,495,904 | 100% | ||
newacchud | 0 | 61,363,820 | 100% | ||
thehiv | 0 | 600,503,206 | 100% | ||
exifr0 | 0 | 4,248,588,818 | 3% | ||
cssim | 0 | 14,130,707,993 | 100% | ||
jayplayco | 0 | 16,694,640,819 | 100% | ||
dlike | 0 | 14,469,884,867 | 6% | ||
peterpa | 0 | 143,274,772,903 | 100% | ||
buzzbee | 0 | 1,192,625,823 | 100% | ||
ab123 | 0 | 4,986,041,935 | 30% | ||
rtytf2 | 0 | 46,110,390,470 | 50% | ||
cultus-forex | 0 | 76,493,099,030 | 100% | ||
ayisigi | 0 | 363,421,884 | 100% | ||
honeybeerbear | 0 | 661,475,306 | 15% | ||
eccles | 0 | 3,277,521,093 | 100% | ||
smonia | 0 | 516,928,837 | 100% | ||
playsteemmonster | 0 | 115,146,927 | 33% | ||
tr77 | 0 | 253,978,578 | 100% | ||
pirateking | 0 | 0 | 100% | ||
piratekiller | 0 | 0 | 100% | ||
shallwebegin | 0 | 0 | 100% | ||
smon-joa | 0 | 1,359,141,111 | 100% | ||
skymin | 0 | 45,298,689,967 | 35% | ||
ebele | 0 | 194,964,131 | 25% | ||
wallet-kabil | 0 | 1,171,068,632 | 100% | ||
lefty619 | 0 | 3,319,906,361 | 100% | ||
j-car | 0 | 263,734,538,026 | 19% | ||
newmacho | 0 | 1,085,896,346 | 80% | ||
minigame | 0 | 352,885,894,838 | 56.1% | ||
seasons-te | 0 | 128,076,132 | 11.6% | ||
sct.biz | 0 | 35,408,901,036 | 100% | ||
feelsogood.cur | 0 | 3,228,784,015 | 50% | ||
yasu.aaa | 0 | 0 | 100% | ||
wonsama.sct | 0 | 0 | 100% | ||
goodhello.sct | 0 | 0 | 100% | ||
union.sct | 0 | 1,331,152,369 | 100% | ||
team1p | 0 | 1,470,504,662 | 100% | ||
steem.leo | 0 | 672,421,787 | 11.6% | ||
realmankwon.scot | 0 | 248,163,249 | 50% | ||
leo.voter | 0 | 580,900,424 | 11.6% | ||
mohor | 0 | 30,645,137,345 | 100% | ||
soonhai | 0 | 0 | 9% | ||
perrymine | 0 | 91,269,354 | 10% | ||
younha | 0 | 116,014,126 | 33% | ||
sct.krwp | 0 | 28,176,412,031,319 | 71.07% | ||
rdcorporate | 0 | 480,586,686 | 100% | ||
hugo1954 | 0 | 199,256,731 | 100% | ||
acta | 0 | 7,186,548 | 100% | ||
maxuvd | 0 | 13,299,861,562 | 18% | ||
maxuve | 0 | 9,445,941,869 | 3.2% | ||
jhzzanglove | 0 | 0 | 15% | ||
sct.curator | 0 | 7,057,838,865 | 7.57% | ||
mcgome | 0 | 232,187,012 | 50% | ||
bilpcoin.pay | 0 | 592,519,100 | 100% | ||
servob | 0 | 0 | -10% | ||
reward.tier3 | 0 | 2,665,305,551 | 100% | ||
goodhihello | 0 | 0 | 100% | ||
ksm5865 | 0 | 172,470,572,060 | 100% | ||
warmstill | 0 | 0 | 100% | ||
giannella | 0 | 278,506,890 | 100% | ||
successgr | 0 | 154,375,759,969 | 7% | ||
doyoy | 0 | 3,537,960,534 | 100% | ||
kjinhyun | 0 | 17,805,858,510 | 5% | ||
dev.supporters | 0 | 88,096,869,515 | 10% | ||
suckerpunk | 0 | 1,412,621,352 | 100% | ||
krwp.abc | 0 | 2,064,784,347 | 52.63% | ||
juddsmith079 | 0 | 276,803,138,904 | 100% | ||
upvu | 0 | 96,514,185,222,980 | 17.67% | ||
denzelwash | 0 | 1,244,306,213 | 100% | ||
gijoona | 0 | 2,184,216,741 | 100% | ||
maishiranui | 0 | 71,260,903 | 33% | ||
saany | 0 | 1,283,880,672 | 100% | ||
loscafeteros | 0 | 106,422,314 | 25% | ||
alwaysgrateful | 0 | 11,528,309,496 | 10% | ||
porque | 0 | 309,616,142 | 88% | ||
leungyi | 0 | 4,930,727,613 | 100% | ||
allen.silva | 0 | 105,844,574 | 100% | ||
izraelinspired | 0 | 436,727,366 | 50% | ||
nutbox.mine | 0 | 5,720,698,969,214 | 4.86% | ||
esteban85 | 0 | 4,987,675,392 | 100% | ||
franmathey05 | 0 | 203,833,222 | 50% | ||
javacode | 0 | 446,988,287 | 88% | ||
javascriptcode | 0 | 447,862,901 | 88% | ||
phpcode | 0 | 448,097,587 | 88% | ||
swiftcode | 0 | 448,035,081 | 88% | ||
scalacode | 0 | 447,966,232 | 88% | ||
smove | 0 | 31,110,838 | 50% | ||
aman9675 | 0 | 3,532,983,276 | 100% | ||
cyka2blyat | 0 | 503,869,129 | 100% | ||
news-bot | 0 | 505,773,253 | 100% | ||
pure-gameplay | 0 | 508,275,346 | 100% | ||
yahoofinancelive | 0 | 4,644,928,845 | 100% | ||
sebassv | 0 | 1,085,114,527 | 100% | ||
silverybeauty | 0 | 578,978,931 | 100% | ||
cutielife | 0 | 578,094,210 | 100% | ||
dame.coin | 0 | 39,500,924 | 7.57% | ||
chocoheaven | 0 | 578,485,526 | 100% | ||
uche-salome | 0 | 700,812,708 | 100% | ||
core.voter | 0 | 18,908,684,400 | 100% | ||
successgr.with | 0 | 200,113,203,118 | 3% | ||
enmaai | 0 | 586,280,979 | 33% | ||
zuriel9 | 0 | 850,490,607 | 100% | ||
dorjonaf | 0 | 184,051,450 | 100% | ||
ladyu0404 | 0 | 44,031,924 | 16.5% | ||
luzmari12 | 0 | 440,420,185 | 100% | ||
duduhj | 0 | 44,080,871 | 16.5% | ||
manuel1 | 0 | 128,595,129 | 100% | ||
alejandroshami01 | 0 | 398,707,211 | 100% |
<a href="https://coupa.ng/bHgxg2" target="_blank"><img src="https://ads-partners.coupang.com/banners/273554?subId=&traceId=V0-301-879dd1202e5c73b2-I273554&w=728&h=90" alt=""></a> <div class='shr_item' style='position:relative; min-height:158px; margin:12px 0; padding:9px 10px; border:1px solid #dbdbdb; border-radius:1px; background-color:#fff;'><div class='item_dtl' style='position:relative; height:158px; padding:5px; border:1px solid #f0f1f4;'><span class='thmb' style='float:left; overflow:hidden; width:156px; height:156px; margin-right:9px; border:1px solid #e7e7e7;'><a href='https://qoo.tn/AoaPVR/Q163214049'><img src='https://steemitimages.com/240x0/https://gd.image-gmkt.com/li/061/293/1455293061.g_400-w-st_g.jpg' width='156' alt='' style='vertical-align: middle; border: 0 none;'></a></span><p class='tit' style='overflow:hidden; max-height:68px; margin-bottom:7px; line-height:17px; color:#000;'>[US$49.00](▼14%)[Nespresso]스타벅스 네스프레소 호환 캡슐 7종 / 120 캡슐 골라담기 / 20개씩 총 6종류 교차 선택 가능 / 중복 선택 가능 / 재고 확보 / 무료배송 / 개당 약 486원 최저가★</p><span class='url' style='position:absolute; left:170px; bottom:10px; display:block; font-weight:bold; color:#9197a3;'>WWW.QOO10.COM</span></div></div>
post_id | 91,948,559 |
---|---|
author | upvu |
permlink | re--xing-api-api-20210614t144305836z |
category | hive-101145 |
json_metadata | {"tags":["hive-101145","sct-kr","sct-freeboard","s","union","spt","zzan","krsuccess","sct"]} |
created | 2021-06-14 14:43:06 |
last_update | 2021-06-14 14:43:06 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2021-06-21 14:43:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 1,191 |
author_reputation | 27,754,495,235,856 |
root_title | "[일상] xing api 중 옵션 관련 api" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
start success go! go! go!
post_id | 91,948,653 |
---|---|
author | successgr.with |
permlink | re-xing-api-api-20210614t144638 |
category | hive-101145 |
json_metadata | {} |
created | 2021-06-14 14:46:39 |
last_update | 2021-06-14 14:46:39 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2021-06-21 14:46:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 29 |
author_reputation | 261,015,721,568,254 |
root_title | "[일상] xing api 중 옵션 관련 api" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
@tradingideas transfered 38 KRWP to @krwp.burn. voting percent : 71.07%, voting power : 59.15%, steem power : 1788407.98, STU KRW : 1200. @tradingideas staking status : 13200 KRWP @tradingideas limit for KRWP voting service : 13.2 KRWP (rate : 0.001) What you sent : 38 KRWP Refund balance : 24.8 KRWP [54624343 - dcf269c08a5271e72fd77898e03ff0dae678173b]
post_id | 91,948,659 |
---|---|
author | sct.krwp |
permlink | re--xing-api-api-20210614t144641844z |
category | hive-101145 |
json_metadata | {"tags":["hive-101145","sct-kr","sct-freeboard","s","union","spt","zzan","krsuccess","sct"]} |
created | 2021-06-14 14:46:42 |
last_update | 2021-06-14 14:46:42 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2021-06-21 14:46:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 452 |
author_reputation | 10,000,000,000,000 |
root_title | "[일상] xing api 중 옵션 관련 api" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
좋은 결과를 응원합니다
post_id | 91,967,017 |
---|---|
author | luciferkim |
permlink | quqd6y |
category | hive-101145 |
json_metadata | {"app":"steemit\/0.2"} |
created | 2021-06-15 06:40:12 |
last_update | 2021-06-15 06:40:12 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2021-06-22 06:40:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 12 |
author_reputation | 76,246,905,464,437 |
root_title | "[일상] xing api 중 옵션 관련 api" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |