Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hive-js
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
hive-js
Commits
a8a623a1
Commit
a8a623a1
authored
4 years ago
by
Mahdi Yari
Browse files
Options
Downloads
Patches
Plain Diff
add getRecentTrades
parent
80f90031
No related branches found
No related tags found
1 merge request
!17
update readme
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/README.md
+40
-5
40 additions, 5 deletions
doc/README.md
with
40 additions
and
5 deletions
doc/README.md
+
40
−
5
View file @
a8a623a1
...
@@ -2044,31 +2044,66 @@ hive.broadcast.withdrawVesting(wif, account, vestingShares, function(err, result
...
@@ -2044,31 +2044,66 @@ hive.broadcast.withdrawVesting(wif, account, vestingShares, function(err, result
});
});
```
```
### Witness Update
### Witness Update
```
```
js
hive
.
broadcast
.
witnessUpdate
(
wif
,
owner
,
url
,
blockSigningKey
,
props
,
fee
,
function
(
err
,
result
)
{
hive
.
broadcast
.
witnessUpdate
(
wif
,
owner
,
url
,
blockSigningKey
,
props
,
fee
,
function
(
err
,
result
)
{
console
.
log
(
err
,
result
);
console
.
log
(
err
,
result
);
});
});
```
```
### Fill Vesting Withdraw
### Fill Vesting Withdraw
```
```
js
hive
.
broadcast
.
fillVestingWithdraw
(
wif
,
fromAccount
,
toAccount
,
withdrawn
,
deposited
,
function
(
err
,
result
)
{
hive
.
broadcast
.
fillVestingWithdraw
(
wif
,
fromAccount
,
toAccount
,
withdrawn
,
deposited
,
function
(
err
,
result
)
{
console
.
log
(
err
,
result
);
console
.
log
(
err
,
result
);
});
});
```
```
### Fill Order
### Fill Order
```
```
js
hive
.
broadcast
.
fillOrder
(
wif
,
currentOwner
,
currentOrderid
,
currentPays
,
openOwner
,
openOrderid
,
openPays
,
function
(
err
,
result
)
{
hive
.
broadcast
.
fillOrder
(
wif
,
currentOwner
,
currentOrderid
,
currentPays
,
openOwner
,
openOrderid
,
openPays
,
function
(
err
,
result
)
{
console
.
log
(
err
,
result
);
console
.
log
(
err
,
result
);
});
});
```
```
### Fill Transfer From Savings
### Get Recent Trades
Gets a list of the last
`limit`
trades from the market.
```
js
hive
.
api
.
getRecentTrades
(
limit
,
callback
);
```
```
|Parameter|Datatype|Description|
|---------|--------|-----------|
|limit|number|a positive number|
|callback|function|function(err, data) {/
*code*
/}|
Call Example:
```
js
hive
.
api
.
getRecentTrades
(
2
,
function
(
err
,
data
)
{
console
.
log
(
err
,
data
);
});
```
Return Example:
```
js
[
{
date
:
'
2020-11-03T16:08:51
'
,
current_pays
:
'
51.754 HIVE
'
,
open_pays
:
'
6.085 HBD
'
},
{
date
:
'
2020-11-03T16:08:48
'
,
current_pays
:
'
1.134 HBD
'
,
open_pays
:
'
9.503 HIVE
'
}
]
```
### Fill Transfer From Savings
```
js
hive
.
broadcast
.
fillTransferFromSavings
(
wif
,
from
,
to
,
amount
,
requestId
,
memo
,
function
(
err
,
result
)
{
hive
.
broadcast
.
fillTransferFromSavings
(
wif
,
from
,
to
,
amount
,
requestId
,
memo
,
function
(
err
,
result
)
{
console
.
log
(
err
,
result
);
console
.
log
(
err
,
result
);
});
});
```
```
### Comment Payout
### Comment Payout
```
```
js
hive
.
broadcast
.
commentPayout
(
wif
,
author
,
permlink
,
payout
,
function
(
err
,
result
)
{
hive
.
broadcast
.
commentPayout
(
wif
,
author
,
permlink
,
payout
,
function
(
err
,
result
)
{
console
.
log
(
err
,
result
);
console
.
log
(
err
,
result
);
});
});
...
...
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