Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
beem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
beem
Commits
8b9a2e38
Commit
8b9a2e38
authored
5 years ago
by
Michael D. Garcia
Browse files
Options
Downloads
Patches
Plain Diff
typos
parent
146ddb54
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
beem/market.py
+8
-8
8 additions, 8 deletions
beem/market.py
with
8 additions
and
8 deletions
beem/market.py
+
8
−
8
View file @
8b9a2e38
...
...
@@ -120,8 +120,8 @@ class Market(dict):
* ``latest``: Price of the order last filled
* ``lowest_ask``: Price of the lowest ask
* ``highest_bid``: Price of the highest bid
* ``
h
bd_volume``: Volume of HBD
* ``
hive
_volume``: Volume of HIVE
* ``
s
bd_volume``: Volume of HBD
* ``
steem
_volume``: Volume of HIVE
* ``percent_change``: 24h change percentage (in %)
.. note::
...
...
@@ -136,8 +136,8 @@ class Market(dict):
'
latest
'
: 0.0,
'
lowest_ask
'
: 0.3249636958897082,
'
percent_change
'
: 0.0,
'
h
bd_volume
'
: 108329611.0,
'
hive
_volume
'
: 355094043.0
'
s
bd_volume
'
: 108329611.0,
'
steem
_volume
'
: 355094043.0
}
"""
...
...
@@ -190,8 +190,8 @@ class Market(dict):
if
raw_data
:
return
volume
return
{
self
[
"
base
"
][
"
symbol
"
]:
Amount
(
volume
[
"
h
bd_volume
"
],
hive_instance
=
self
.
hive
),
self
[
"
quote
"
][
"
symbol
"
]:
Amount
(
volume
[
"
hive
_volume
"
],
hive_instance
=
self
.
hive
)
self
[
"
base
"
][
"
symbol
"
]:
Amount
(
volume
[
"
s
bd_volume
"
],
hive_instance
=
self
.
hive
),
self
[
"
quote
"
][
"
symbol
"
]:
Amount
(
volume
[
"
steem
_volume
"
],
hive_instance
=
self
.
hive
)
}
def
orderbook
(
self
,
limit
=
25
,
raw_data
=
False
):
...
...
@@ -433,9 +433,9 @@ class Market(dict):
'
open
'
:
'
2016-07-08T11:25:00
'
,
'
open_hbd
'
: 534928,
'
open_hive
'
: 1661266,
'
h
bd_volume
'
: 9714435,
'
s
bd_volume
'
: 9714435,
'
seconds
'
: 300,
'
hive
_volume
'
: 30088443
'
steem
_volume
'
: 30088443
}
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment