Skip to content

Commit 2b483d2

Browse files
committed
update comments
1 parent 201c64a commit 2b483d2

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

pyspark_datasources/robinhood.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ class RobinhoodDataSource(DataSource):
2020
2121
Name: `robinhood`
2222
23-
Schema: `symbol string, price double, bid_price double, ask_price double,
24-
volume_24h double, price_change_24h double, percent_change_24h double,
25-
market_cap double, updated_at string`
23+
Schema: `symbol string, price double, bid_price double, ask_price double, updated_at string`
2624
2725
Examples
2826
--------
@@ -38,13 +36,13 @@ class RobinhoodDataSource(DataSource):
3836
... .option("private_key", "your-base64-private-key") \\
3937
... .load("BTC-USD,ETH-USD,DOGE-USD")
4038
>>> df.show()
41-
+--------+--------+---------+---------+---------+------------------+--------------------+----------+--------------------+
42-
| symbol| price|bid_price|ask_price|volume_24h| price_change_24h| percent_change_24h|market_cap| updated_at|
43-
+--------+--------+---------+---------+---------+------------------+--------------------+----------+--------------------+
44-
|BTC-USD |45000.50|45000.25 |45000.75 | 28.5B | 250.50| 0.56| 880.2B |2024-01-15T16:00:...|
45-
|ETH-USD | 2650.75| 2650.50 | 2651.00 | 12.8B | 45.75| 1.76| 318.5B |2024-01-15T16:00:...|
46-
|DOGE-USD| 0.085| 0.084| 0.086| 2.1B | 0.0025| 3.02| 12.1B |2024-01-15T16:00:...|
47-
+--------+--------+---------+---------+---------+------------------+--------------------+----------+--------------------+
39+
+--------+--------+---------+---------+--------------------+
40+
| symbol| price|bid_price|ask_price| updated_at|
41+
+--------+--------+---------+---------+--------------------+
42+
|BTC-USD |45000.50|45000.25 |45000.75 |2024-01-15T16:00:...|
43+
|ETH-USD | 2650.75| 2650.50 | 2651.00 |2024-01-15T16:00:...|
44+
|DOGE-USD| 0.085| 0.084| 0.086|2024-01-15T16:00:...|
45+
+--------+--------+---------+---------+--------------------+
4846
4947
Load data for specific trading pairs:
5048

0 commit comments

Comments
 (0)