mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-08-07 01:33:52 +00:00
test(api): add yahoo fixtures, mock-provider errors, and CLI integration coverage
This commit is contained in:
parent
c0a3d744b2
commit
639ee4b041
6 changed files with 233 additions and 51 deletions
30
tests/fixtures/chart_bbca_1d.json
vendored
Normal file
30
tests/fixtures/chart_bbca_1d.json
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"chart": {
|
||||
"result": [
|
||||
{
|
||||
"meta": {
|
||||
"symbol": "BBCA.JK",
|
||||
"regularMarketPrice": 9875.0,
|
||||
"previousClose": 9758.0,
|
||||
"regularMarketVolume": 12300000,
|
||||
"marketCap": 1215200000000000,
|
||||
"fiftyTwoWeekHigh": 10250.0,
|
||||
"fiftyTwoWeekLow": 7800.0,
|
||||
"averageDailyVolume3Month": 10000000
|
||||
},
|
||||
"timestamp": [1709251200],
|
||||
"indicators": {
|
||||
"quote": [
|
||||
{
|
||||
"open": [9800.0],
|
||||
"high": [9900.0],
|
||||
"low": [9750.0],
|
||||
"close": [9875.0],
|
||||
"volume": [12300000]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
25
tests/fixtures/chart_bbca_3mo.json
vendored
Normal file
25
tests/fixtures/chart_bbca_3mo.json
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"chart": {
|
||||
"result": [
|
||||
{
|
||||
"meta": {
|
||||
"symbol": "BBCA.JK",
|
||||
"regularMarketPrice": 9875.0,
|
||||
"previousClose": 9758.0
|
||||
},
|
||||
"timestamp": [1709251200, 1709337600, 1709424000],
|
||||
"indicators": {
|
||||
"quote": [
|
||||
{
|
||||
"open": [9800.0, 9850.0, 9860.0],
|
||||
"high": [9900.0, 9920.0, 9950.0],
|
||||
"low": [9750.0, 9800.0, 9820.0],
|
||||
"close": [9875.0, 9880.0, 9925.0],
|
||||
"volume": [12300000, 11000000, 14000000]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue