mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-10-06 13:48:09 +03:00
19 lines
424 B
Python
19 lines
424 B
Python
from .connection import Connection
|
|
from .request import Request
|
|
|
|
|
|
def iidx_ticker_get(con: Connection):
|
|
res = con.request(Request("iidx", "ticker_get"))
|
|
return res.get_data()
|
|
|
|
|
|
def iidx_ticker_set(con: Connection, text: str):
|
|
req = Request("iidx", "ticker_set")
|
|
req.add_param(text)
|
|
con.request(req)
|
|
|
|
|
|
def iidx_ticker_reset(con: Connection):
|
|
req = Request("iidx", "ticker_reset")
|
|
con.request(req)
|