Skip to content

Commit

Permalink
Daily Pathway examples refresh
Browse files Browse the repository at this point in the history
Co-authored-by: Manul from Pathway <github.manul@pathway.com>
GitOrigin-RevId: 9d9d0db7366ed62ce3cd52107994dcfd5278c4cb
  • Loading branch information
Pathway-Dev and Manul from Pathway committed Sep 10, 2024
1 parent 69e0d5a commit 6f899b0
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 79 deletions.
110 changes: 55 additions & 55 deletions examples/notebooks/tutorials/asynctransformer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@
"output_type": "stream",
"text": [
" | value | ret | __time__ | __diff__\n",
"^Z3QWT29... | 2 | 3 | 1725856361602 | 1\n",
"^3CZ78B4... | 2 | 3 | 1725856361802 | 1\n",
"^YYY4HAB... | 6 | 7 | 1725856361802 | 1\n",
"^3HN31E1... | 6 | 7 | 1725856362204 | 1\n",
"^X1MXHYY... | 12 | 13 | 1725856362204 | 1\n"
"^Z3QWT29... | 2 | 3 | 1725942849926 | 1\n",
"^3CZ78B4... | 2 | 3 | 1725942850126 | 1\n",
"^YYY4HAB... | 6 | 7 | 1725942850126 | 1\n",
"^3HN31E1... | 6 | 7 | 1725942850526 | 1\n",
"^X1MXHYY... | 12 | 13 | 1725942850526 | 1\n"
]
}
],
Expand Down Expand Up @@ -410,12 +410,12 @@
"output_type": "stream",
"text": [
" | group | value | ret | __time__ | __diff__\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725856365624 | 1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725856365724 | -1\n",
"^Z3QWT29... | 2 | 3 | 4 | 1725856365724 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725856365926 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725856366126 | -1\n",
"^YYY4HAB... | 1 | 2 | 3 | 1725856366126 | 1\n"
"^Z3QWT29... | 2 | 1 | 2 | 1725942854042 | 1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725942854142 | -1\n",
"^Z3QWT29... | 2 | 3 | 4 | 1725942854142 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725942854342 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725942854544 | -1\n",
"^YYY4HAB... | 1 | 2 | 3 | 1725942854544 | 1\n"
]
}
],
Expand Down Expand Up @@ -537,18 +537,18 @@
"output_type": "stream",
"text": [
" | group | value | ret | __time__ | __diff__\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725856366438 | 1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725856366438 | 1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725856366740 | -1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725856366740 | -1\n",
"^Z3QWT29... | 2 | 4 | 5 | 1725856366740 | 1\n",
"^3HN31E1... | 4 | 2 | 3 | 1725856366740 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725856366840 | 1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1725856366840 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725856366940 | -1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1725856366940 | -1\n",
"^YYY4HAB... | 1 | 2 | 3 | 1725856366940 | 1\n",
"^3CZ78B4... | 3 | 2 | 3 | 1725856366940 | 1\n"
"^Z3QWT29... | 2 | 1 | 2 | 1725942854822 | 1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725942854822 | 1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725942855122 | -1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725942855122 | -1\n",
"^Z3QWT29... | 2 | 4 | 5 | 1725942855122 | 1\n",
"^3HN31E1... | 4 | 2 | 3 | 1725942855122 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725942855224 | 1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1725942855224 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725942855322 | -1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1725942855322 | -1\n",
"^YYY4HAB... | 1 | 2 | 3 | 1725942855322 | 1\n",
"^3CZ78B4... | 3 | 2 | 3 | 1725942855322 | 1\n"
]
}
],
Expand Down Expand Up @@ -581,16 +581,16 @@
"output_type": "stream",
"text": [
" | group | value | ret | __time__ | __diff__\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725856367082 | 1\n",
"^3CZ78B4... | 3 | 2 | 3 | 1725856367184 | 1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725856367284 | 1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725856367384 | -1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725856367384 | -1\n",
"^Z3QWT29... | 2 | 4 | 5 | 1725856367384 | 1\n",
"^3HN31E1... | 4 | 2 | 3 | 1725856367384 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725856367484 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725856367584 | -1\n",
"^YYY4HAB... | 1 | 2 | 3 | 1725856367584 | 1\n"
"^Z3QWT29... | 2 | 1 | 2 | 1725942855458 | 1\n",
"^3CZ78B4... | 3 | 2 | 3 | 1725942855558 | 1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725942855658 | 1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725942855758 | -1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725942855758 | -1\n",
"^Z3QWT29... | 2 | 4 | 5 | 1725942855758 | 1\n",
"^3HN31E1... | 4 | 2 | 3 | 1725942855758 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725942855858 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725942855958 | -1\n",
"^YYY4HAB... | 1 | 2 | 3 | 1725942855958 | 1\n"
]
}
],
Expand Down Expand Up @@ -633,18 +633,18 @@
"output_type": "stream",
"text": [
" | group | value | ret | __time__ | __diff__\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725856367712 | 1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725856367712 | 1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1725856367712 | 1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725856367712 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725856368214 | -1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725856368214 | -1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1725856368214 | -1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725856368214 | -1\n",
"^YYY4HAB... | 1 | 2 | 3 | 1725856368214 | 1\n",
"^Z3QWT29... | 2 | 4 | 5 | 1725856368214 | 1\n",
"^3CZ78B4... | 3 | 2 | 3 | 1725856368214 | 1\n",
"^3HN31E1... | 4 | 2 | 3 | 1725856368214 | 1\n"
"^YYY4HAB... | 1 | 5 | 6 | 1725942856078 | 1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725942856078 | 1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1725942856078 | 1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725942856078 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725942856578 | -1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725942856578 | -1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1725942856578 | -1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725942856578 | -1\n",
"^YYY4HAB... | 1 | 2 | 3 | 1725942856578 | 1\n",
"^Z3QWT29... | 2 | 4 | 5 | 1725942856578 | 1\n",
"^3CZ78B4... | 3 | 2 | 3 | 1725942856578 | 1\n",
"^3HN31E1... | 4 | 2 | 3 | 1725942856578 | 1\n"
]
}
],
Expand Down Expand Up @@ -688,16 +688,16 @@
"output_type": "stream",
"text": [
" | group | value | ret | __time__ | __diff__\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725856368352 | 1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725856368352 | 1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725856368654 | -1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725856368654 | -1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725856368754 | 1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1725856368754 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725856368854 | -1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1725856368854 | -1\n",
"^YYY4HAB... | 1 | 2 | 3 | 1725856368854 | 1\n",
"^3CZ78B4... | 3 | 2 | 3 | 1725856368854 | 1\n"
"^Z3QWT29... | 2 | 1 | 2 | 1725942856710 | 1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725942856710 | 1\n",
"^Z3QWT29... | 2 | 1 | 2 | 1725942857010 | -1\n",
"^3HN31E1... | 4 | 3 | 4 | 1725942857010 | -1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725942857110 | 1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1725942857110 | 1\n",
"^YYY4HAB... | 1 | 5 | 6 | 1725942857210 | -1\n",
"^3CZ78B4... | 3 | 1 | 2 | 1725942857210 | -1\n",
"^YYY4HAB... | 1 | 2 | 3 | 1725942857210 | 1\n",
"^3CZ78B4... | 3 | 2 | 3 | 1725942857210 | 1\n"
]
}
],
Expand Down
46 changes: 23 additions & 23 deletions examples/notebooks/tutorials/fs_connector.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@
"name": "stdout",
"output_type": "stream",
"text": [
"{\"data\":\"test1\",\"diff\":1,\"time\":1725856344718}\r\n",
"{\"data\":\"data2\",\"diff\":1,\"time\":1725856344718}\r\n",
"{\"data\":\"data1\",\"diff\":1,\"time\":1725856344718}\r\n",
"{\"data\":\"test2\",\"diff\":1,\"time\":1725856344718}\r\n"
"{\"data\":\"test1\",\"diff\":1,\"time\":1725942833112}\r\n",
"{\"data\":\"data2\",\"diff\":1,\"time\":1725942833112}\r\n",
"{\"data\":\"data1\",\"diff\":1,\"time\":1725942833112}\r\n",
"{\"data\":\"test2\",\"diff\":1,\"time\":1725942833112}\r\n"
]
},
{
Expand All @@ -161,8 +161,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"{\"data\":\"test1\",\"diff\":1,\"time\":1725856344718}\r\n",
"{\"data\":\"data1\",\"diff\":1,\"time\":1725856344718}\r\n"
"{\"data\":\"test1\",\"diff\":1,\"time\":1725942833112}\r\n",
"{\"data\":\"data1\",\"diff\":1,\"time\":1725942833112}\r\n"
]
}
],
Expand Down Expand Up @@ -218,8 +218,8 @@
"output_type": "stream",
"text": [
"out3:\r\n",
"{\"data\":\"data2\",\"diff\":1,\"time\":1725856345414}\r\n",
"{\"data\":\"test2\",\"diff\":1,\"time\":1725856345414}\r\n"
"{\"data\":\"data2\",\"diff\":1,\"time\":1725942833806}\r\n",
"{\"data\":\"test2\",\"diff\":1,\"time\":1725942833806}\r\n"
]
}
],
Expand Down Expand Up @@ -333,10 +333,10 @@
"output_type": "stream",
"text": [
"header1,header2,time,diff\r\n",
"\"data7\",\"data8\",1725856347016,1\r\n",
"\"data1\",\"data2\",1725856347016,1\r\n",
"\"data3\",\"data4\",1725856347016,1\r\n",
"\"data5\",\"data6\",1725856347016,1\r\n"
"\"data7\",\"data8\",1725942835374,1\r\n",
"\"data1\",\"data2\",1725942835374,1\r\n",
"\"data3\",\"data4\",1725942835374,1\r\n",
"\"data5\",\"data6\",1725942835374,1\r\n"
]
}
],
Expand Down Expand Up @@ -450,9 +450,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
"{\"header1\":\"data7\",\"header2\":\"data8\",\"diff\":1,\"time\":1725856348436}\r\n",
"{\"header1\":\"data3\",\"header2\":\"data4\",\"diff\":1,\"time\":1725856348436}\r\n",
"{\"header1\":\"data5\",\"header2\":\"data6\",\"diff\":1,\"time\":1725856348436}\r\n"
"{\"header1\":\"data7\",\"header2\":\"data8\",\"diff\":1,\"time\":1725942836800}\r\n",
"{\"header1\":\"data3\",\"header2\":\"data4\",\"diff\":1,\"time\":1725942836800}\r\n",
"{\"header1\":\"data5\",\"header2\":\"data6\",\"diff\":1,\"time\":1725942836800}\r\n"
]
}
],
Expand Down Expand Up @@ -521,10 +521,10 @@
"output_type": "stream",
"text": [
"data,time,diff\r\n",
"\"test1\",1725856348862,1\r\n",
"\"data2\",1725856348862,1\r\n",
"\"data1\",1725856348862,1\r\n",
"\"test2\",1725856348862,1\r\n"
"\"test1\",1725942837238,1\r\n",
"\"data2\",1725942837238,1\r\n",
"\"data1\",1725942837238,1\r\n",
"\"test2\",1725942837238,1\r\n"
]
},
{
Expand All @@ -539,8 +539,8 @@
"output_type": "stream",
"text": [
"data,time,diff\r\n",
"\"test2\\ndata2\",1725856348864,1\r\n",
"\"test1\\ndata1\",1725856348864,1\r\n"
"\"test2\\ndata2\",1725942837238,1\r\n",
"\"test1\\ndata1\",1725942837238,1\r\n"
]
},
{
Expand All @@ -555,8 +555,8 @@
"output_type": "stream",
"text": [
"data,time,diff\r\n",
"[116, 101, 115, 116, 50, 10, 100, 97, 116, 97, 50, 10],1725856348864,1\r\n",
"[116, 101, 115, 116, 49, 10, 100, 97, 116, 97, 49, 10],1725856348864,1\r\n"
"[116, 101, 115, 116, 50, 10, 100, 97, 116, 97, 50, 10],1725942837238,1\r\n",
"[116, 101, 115, 116, 49, 10, 100, 97, 116, 97, 49, 10],1725942837238,1\r\n"
]
}
],
Expand Down
3 changes: 2 additions & 1 deletion examples/notebooks/tutorials/option-greeks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
" | ts_recv | raw_symbol | expiration | instrument_class | strike_price | underlying | instrument_id | option_midprice\n",
" | ts_recv | raw_symbol | expiration | instrument_class | strike_price | underlying | instrument_id | option_midprice",
"\n",
"^6ZHYYVZ... | 1712275200000000000 | ESM4 C3950 | 1718976600000000000 | C | 3950.0 | ESM4 | 4162742 | 1255.875\n",
"^W64CERT... | 1712275200000000000 | ESM4 C4000 | 1718976600000000000 | C | 4000.0 | ESM4 | 574893 | 1206.25\n",
"^WGHCM9D... | 1712275200000000000 | ESM4 C4050 | 1718976600000000000 | C | 4050.0 | ESM4 | 4162333 | 1156.75\n",
Expand Down

0 comments on commit 6f899b0

Please sign in to comment.